This is the mail archive of the gcc-patches@gcc.gnu.org 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]

patch for ctor/dtor handling for m68k-elf



I may have sent this in already.

In any case, this patch allows the m68k-elf target to again link code.
Before it had the wrong combination of HAS_INIT_SECTION,
INIT_SECTION_ASM_OP, and STARTFILE_SPEC.  Now, it works just like
normal ELF targets work.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/devo-m68kelfeh.patch===============
Wed Dec  8 12:45:15 1999   Geoff Keating <geoffk@cygnus.com>

	* config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
	(INIT_SECTION_ASM_OP): Delete.
	(FINI_SECTION_ASM_OP): Delete.
	(STARTFILE_SPEC): Define to hold just crtbegin.o.

Index: config/m68k/m68020-elf.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/m68k/m68020-elf.h,v
retrieving revision 1.12
diff -u -p -r1.12 m68020-elf.h
--- m68020-elf.h	1999/03/04 04:08:33	1.12
+++ m68020-elf.h	1999/12/10 02:53:27
@@ -34,20 +34,6 @@ Boston, MA 02111-1307, USA.  */
 #undef	STARTFILE_SPEC
 #define STARTFILE_SPEC "crtbegin.o%s"
 
-#undef ENDFILE_SPEC
-#define ENDFILE_SPEC "crtend.o%s"
-
 #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 */
============================================================


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