freebsd-skq/lib/csu
Konstantin Belousov a22748dbd9 Stop calling _init/_fini methods from crt1 for dynamic binaries. Do
call preinit, init and fini arrays methods from crt1 for static binaries.

Mark new crt1 with FreeBSD-specific ELF note.

Move some common crt1 code into new MI file ignore_init.c, to reduce
duplication.  Also, conservatively adjust nearby sources for style.

Reviewed by:	kan
Tested by:	andrew (arm), flo (sparc64)
MFC after:	3 weeks
2012-03-11 20:04:09 +00:00
..
amd64 Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
arm Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
common Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
i386-elf Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
ia64 Apply a workaround for a binutils issue with the .note.ABI-tag section 2011-01-13 20:44:31 +00:00
mips Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
powerpc Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
powerpc64 Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
sparc64 Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00
Makefile.inc Stop calling _init/_fini methods from crt1 for dynamic binaries. Do 2012-03-11 20:04:09 +00:00