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.
This commit is contained in:
simonb 2000-12-14 06:38:50 +00:00
parent 6b16911a43
commit 3ebe38e227
1 changed files with 13 additions and 0 deletions

View File

@ -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. */