From 2e4a567ed55ab3fb8695ca08cb8bb398ce774c9c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 3 Mar 1999 20:04:07 +0000 Subject: [PATCH] Make C++ static constructors work for m68k-elf. * m68k/m68020-elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Undef. (STARTFILE_SPEC, ENDFILE_SPEC): Define to empty string. From-SVN: r25565 --- gcc/ChangeLog | 3 +++ gcc/config/m68k/m68020-elf.h | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a3bddd9ceb..84be44d893b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Wed Mar 3 19:09:11 1999 Jim Wilson + * m68k/m68020-elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Undef. + (STARTFILE_SPEC, ENDFILE_SPEC): Define to empty string. + * sparc/elf.h (MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL, UMODDI3_LIBCALL, STDC_0_IN_SYSTEM_HEADERS): Undef. (INIT_SUBTARGET_OPTABS): Define to empty. diff --git a/gcc/config/m68k/m68020-elf.h b/gcc/config/m68k/m68020-elf.h index ac9ae43120c..94b5d44064c 100644 --- a/gcc/config/m68k/m68020-elf.h +++ b/gcc/config/m68k/m68020-elf.h @@ -39,4 +39,15 @@ Boston, MA 02111-1307, USA. */ #define LIB_SPEC "-lc" +/* ??? Quick hack to get constructors working. Make this look more like a + COFF target, so the existing dejagnu/libgloss support works. A better + solution would be to make the necessary dejagnu and libgloss changes so + that we can use normal the ELF constructor mechanism. */ +#undef INIT_SECTION_ASM_OP +#undef FINI_SECTION_ASM_OP +#undef STARTFILE_SPEC +#define STARTFILE_SPEC "" +#undef ENDFILE_SPEC +#define ENDFILE_SPEC "" + /* end of m68020-elf.h */