svn commit: trunk/uClibc
Peter Kjellerstedt
peter.kjellerstedt at axis.com
Sat Mar 4 08:58:22 UTC 2006
> -----Original Message-----
> From: uclibc-cvs-bounces at uclibc.org
> [mailto:uclibc-cvs-bounces at uclibc.org] On Behalf Of psm at uclibc.org
> Sent: den 3 mars 2006 19:50
> To: uclibc-cvs at uclibc.org
> Subject: svn commit: trunk/uClibc
>
> Author: psm
> Date: 2006-03-03 10:49:40 -0800 (Fri, 03 Mar 2006)
> New Revision: 14438
>
> Log:
> Add --gc-sections, saves 2k on libc.so
>
> Modified:
> trunk/uClibc/Rules.mak
>
>
> Changeset:
> Modified: trunk/uClibc/Rules.mak
> ===================================================================
> --- trunk/uClibc/Rules.mak 2006-03-03 18:37:39 UTC (rev 14437)
> +++ trunk/uClibc/Rules.mak 2006-03-03 18:49:40 UTC (rev 14438)
> @@ -358,6 +358,7 @@
> #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,)
Minor detail, but the check_ld() function only takes one argument,
so there is one comma at the ent too much above.
> ifeq ($(UCLIBC_BUILD_RELRO),y)
> LDFLAGS_NOSTRIP+=-z relro
//Peter
More information about the uClibc
mailing list