From 3ebe38e227ac292e841ed71ce830ea4ca2c871b6 Mon Sep 17 00:00:00 2001 From: simonb Date: Thu, 14 Dec 2000 06:38:50 +0000 Subject: [PATCH] Use the ASM_OUTPUT_COMMON() and ASM_OUTPUT_LOCAL() macros from gcc 2.95.2's m68kelf.h. Fixes problems with the size of common objects. From Charles Hannum. --- gnu/dist/gcc/config/m68k/netbsd-elf.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/dist/gcc/config/m68k/netbsd-elf.h b/gnu/dist/gcc/config/m68k/netbsd-elf.h index a173ff44a102..3e3634a4d234 100644 --- a/gnu/dist/gcc/config/m68k/netbsd-elf.h +++ b/gnu/dist/gcc/config/m68k/netbsd-elf.h @@ -359,6 +359,19 @@ do { \ fputs(" = ", FILE); \ assemble_name(FILE, NAME2); \ fputc('\n', FILE); } while (0) + +#undef ASM_OUTPUT_COMMON +#undef ASM_OUTPUT_LOCAL +#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \ +( fputs (".comm ", (FILE)), \ + assemble_name ((FILE), (NAME)), \ + fprintf ((FILE), ",%u\n", (SIZE))) + +#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \ +( fputs (".lcomm ", (FILE)), \ + assemble_name ((FILE), (NAME)), \ + fprintf ((FILE), ",%u\n", (SIZE))) + /* Currently, JUMP_TABLES_IN_TEXT_SECTION must be defined in order to keep switch tables in the text section. */