freebsd-dev/lib/csu/powerpc
Konstantin Belousov d549ead6a9 Only assign the environ in the startup code when environ is NULL.
Preloaded library could have changed the environment, and
unconditional assingment to the environ undoes the customization.
The binaries needs to be recompiled to get the fix.

Move the common code to set up environ and __progname into the helper.
Note that ia64 possibly not fixed, due to it still using old csu.

Reported and tested by:	John Hein <jhein@symmetricom.com>
Reviewed by:	kan, scf
Approved by:	secteam (simon)
MFC after:	2 weeks
2013-01-07 17:58:27 +00:00
..
crt1.c Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
crti.S Mark csu on PowerPC as not requiring executable stack. 2011-01-14 11:34:58 +00:00
crtn.S Mark csu on PowerPC as not requiring executable stack. 2011-01-14 11:34:58 +00:00
Makefile Revert r234356 for now, as it leads to run-time problems on 32-bit 2012-04-23 06:33:27 +00:00