sparclite-elf bug, GNATS bootstrap/4198

David S. Miller
Mon Oct 7 01:58:00 GMT 2002

This change

Fix sparc*-*-elf constructor problems; from Jason Merrill via Jonathan Larmour.
	* config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
	* (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
	* configure: Regenerate.

seems to be the source of the GNATS bug mentioned in the
subject.  The diff is:

Index: liteelf.h
RCS file: /cvs/gcc/gcc/gcc/config/sparc/liteelf.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -r1.2 -r1.3
> /* Use __main method of constructor invocation.  */

As a result, we have ELF + !INIT_SECTION_ASM_OP and !HAS_INIT_SECTION
which causes crtstuff.c to explode here:

#error "What are you doing with crtstuff.c, then?"

It is possible that gcc/crtstuff.c changed incompatibly between your
changes and now.  I did a quick cvs log of crtstuff.c and this appears
to not be the case, only unrelated changes have happened.

More information about the Gcc-bugs mailing list