summaryrefslogtreecommitdiffstats
path: root/lib/csu/Makefile.inc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-03-11 20:04:09 +0000
committerkib <kib@FreeBSD.org>2012-03-11 20:04:09 +0000
commit3a09450fbfc07fbf4db074a00361c61127b4822a (patch)
tree87fa5b72982e5d814e7f1852737adcdcb1b08fc7 /lib/csu/Makefile.inc
parent95d1e3d11bebe5f0d75da30af98fbc94ee0e5233 (diff)
downloadFreeBSD-src-3a09450fbfc07fbf4db074a00361c61127b4822a.zip
FreeBSD-src-3a09450fbfc07fbf4db074a00361c61127b4822a.tar.gz
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
Diffstat (limited to 'lib/csu/Makefile.inc')
-rw-r--r--lib/csu/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 078cb9f..11ddc66 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -2,4 +2,6 @@
SSP_CFLAGS=
+SED_FIX_NOTE = -i "" -e '/\.note\.tag/s/progbits/note/'
+
.include "../Makefile.inc"
OpenPOWER on IntegriCloud