From 70cbb82d634b056b815fd82b9471a2b24e426537 Mon Sep 17 00:00:00 2001 From: wilson Date: Wed, 3 Mar 1999 20:04:07 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25565 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/m68k/m68020-elf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gcc/config/m68k') 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 */ -- cgit v1.2.1