freebsd-skq/lib/csu
kib 6d5842f6ee 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
..
amd64 Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
arm Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
common Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
i386-elf Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
ia64 After r217375, some startup objects under lib/csu are built in a special 2012-04-20 21:00:39 +00:00
mips Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
powerpc Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
powerpc64 Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
sparc64 Only assign the environ in the startup code when environ is NULL. 2013-01-07 17:58:27 +00:00
Makefile.inc Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00