svn commit: trunk/busybox

Bernhard Fischer rep.nop at aon.at
Wed Jun 14 00:56:19 PDT 2006


On Tue, Jun 13, 2006 at 09:17:16AM -0700, landley at busybox.net wrote:
>Author: landley
>Date: 2006-06-13 09:17:16 -0700 (Tue, 13 Jun 2006)
>New Revision: 15371
>
>Log:
>Use -ffunction-sections -fdata-sections --gc-sections if the compiler supports
>it.  If nothing else, this gives us better granularity in bloatcheck.

It really is just papering over the need to have the affected functions
conditional on their users. Not that is of any interrest for you, but
i'm backing this out of my copy, FWIW.

>--- trunk/busybox/Rules.mak	2006-06-13 16:09:16 UTC (rev 15370)
>+++ trunk/busybox/Rules.mak	2006-06-13 16:17:16 UTC (rev 15371)
>@@ -284,6 +285,7 @@
> else
>     CFLAGS +=-DNDEBUG
>     CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
>+    CHECKED_LDFLAGS += $(call check_ld,--gc-sections,)

You forgot to specify which command to check. The proper invocation
would have read:
$(call check_ld,$(LD),--gc-sections,)
i.e. you have to specify which LD-binary you want to check.
That said, gc-sections seems to be on per default for the ld target i'm
usually using (i386 on linux), so it's a mere cosmetic "issue".

cheerio,


More information about the busybox mailing list