This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

m68k/m68020-elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Undef.

I have checked in this patch.

This makes C++ static constructors work for the m68k-elf toolchain, when
used with libgloss and dejagnu.  It isn't the best solution, but making them
work now seems better than leaving them broken until someone has time to fix
it the right way.

Wed Mar  3 20:02:21 1999  Jim Wilson  <>

	* m68k/m68020-elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Undef.
	(STARTFILE_SPEC, ENDFILE_SPEC): Define to empty string.

Index: m68020-elf.h
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/m68k/m68020-elf.h,v
retrieving revision 1.2
diff -p -r1.2 m68020-elf.h
*** m68020-elf.h	1998/12/16 21:06:51	1.2
--- m68020-elf.h	1999/03/04 04:02:12
*************** Boston, MA 02111-1307, USA.  */
*** 39,42 ****
--- 39,53 ----
  #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.  */
+ #define STARTFILE_SPEC ""
+ #define ENDFILE_SPEC ""
  /* end of m68020-elf.h */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]