aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-05-07 17:11:47 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-15 07:59:19 +1000
commit449fa1606c08583c50db8766b581299777c39c83 (patch)
tree90379435e0e386e227495f564acd11d45a35b7ea /Makefile.main
parentd3cedfba5553227dec328ed0000221ed5c4294ad (diff)
downloadskiboot-449fa1606c08583c50db8766b581299777c39c83.zip
skiboot-449fa1606c08583c50db8766b581299777c39c83.tar.gz
skiboot-449fa1606c08583c50db8766b581299777c39c83.tar.bz2
Don't exclude sections during link
We seem to need this to get the gcc generated ctors not discarded Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index 310601d..e67d4cf 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -66,7 +66,7 @@ endif
CFLAGS += $(CWARNS) $(OPTS) $(DBG)
-LDFLAGS := -m64 -static -nostdlib -Wl,--gc-sections -pie
+LDFLAGS := -m64 -static -nostdlib -pie
LDFLAGS += -Wl,-Ttext-segment,$(LD_TEXT) -Wl,-N -Wl,--build-id=none
LDFLAGS += -Wl,--no-multi-toc
LDRFLAGS=-melf64ppc