[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200804011509.28842.rob@landley.net>
Date: Tue, 1 Apr 2008 15:09:28 -0500
From: Rob Landley <rob@...dley.net>
To: linux-tiny@...enic.com
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
Reynes Philippe <tremyfr@...oo.fr>, hpa@...or.com,
linux-kernel@...r.kernel.org, mingo@...e.hu, tglx@...utronix.de
Subject: Re: [PATCH] Configure out DMI scanning code v2 (Linux Tiny)
On Tuesday 01 April 2008 14:00:36 Andrew Morton wrote:
> text data bss dec hex filename
> 1614279 210524 159992 1984795 1e491b vmlinux
>
> but when I remove the ifdefs around the tables and rely on the compiler
> removing the code and data I get
>
> text data bss dec hex filename
> 1614447 210972 159992 1985411 1e4b83 vmlinux
>
> An additional 616 bytes of useless stuff.
>
> Ingo, I think there was some trick to making this work right. Do you
> recall?
Does bloat-o-meter say what the additional 616 bytes _is_?
scripts/bloat-o-meter vmlinux.old vmlinux.new
P.S. What busybox did:
ifneq ($(strip $(CONFIG_DEBUG)),y)
OPTIMIZATION+=$(call check_cc,
$(CC),-ffunction-sections -fdata-sections,)
CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,)
endif
Tells gcc to put each function and each global into its own ELF section, and
then told the linker to garbage collect unused sections...
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists