[Skiboot] [PATCH 08/11] Don't exclude sections during link
Stewart Smith
stewart at linux.vnet.ibm.com
Thu May 7 17:11:47 AEST 2015
We seem to need this to get the gcc generated ctors not discarded
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
Makefile.main | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.7.10.4
More information about the Skiboot
mailing list