OSDN Git Service

Add --gc-sections, saves 2k on libc.so
authorPeter S. Mazinger <ps.m@gmx.net>
Fri, 3 Mar 2006 18:49:40 +0000 (18:49 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Fri, 3 Mar 2006 18:49:40 +0000 (18:49 -0000)
Rules.mak

index f31475e..7c84a4e 100644 (file)
--- 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