summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-03-03 18:49:40 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-03-03 18:49:40 +0000
commitf8194a24c53f59594441830b692fae68e354076c (patch)
tree1d58839986f37a16669968635eb2a2eb3d96e18c
parent167aadc7ef8b163509c57628a3eb2b25e6f0b4ad (diff)
Add --gc-sections, saves 2k on libc.so
-rw-r--r--Rules.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index f31475e1e..7c84a4ec8 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -358,6 +358,7 @@ endif
#CFLAGS += $(call check_gcc,-std=c99,)
LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
+LDFLAGS_NOSTRIP+=$(call check_ld,--gc-sections,)
ifeq ($(UCLIBC_BUILD_RELRO),y)
LDFLAGS_NOSTRIP+=-z relro