Subject: CVS commit: src/lib/csu/common_elf
To: None <source-changes@NetBSD.org>
From: matthew green <mrg@netbsd.org>
List: source-changes
Date: 05/13/2006 01:40:34
Module Name:	src
Committed By:	mrg
Date:		Sat May 13 01:40:34 UTC 2006

Modified Files:
	src/lib/csu/common_elf: Makefile.inc

Log Message:
with GCC4 we *need* to pass -fno-unit-at-a-time otherwise GCC
reorders things breaking _init() and _fini().

for i386, the {init,fini}_fallthru() functions were being output
_before_ the _init()/ _fini(), and instead of falling through to
the rest of the .init/.fini section, it would fall through to
_init()/_fini() again, and again, and again, until the stack was
exhausted.

now i386 works, but i have not checked that this works for
sparc64 as well.


To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 src/lib/csu/common_elf/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.