Re: [PATCH 3/3] build system: section garbage collection for vmlinux

Denys Vlasenko
2007-09-05T18:40:35Z

On Wednesday 05 September 2007 14:55, Denys Vlasenko wrote:
> Part 3:
>
> Makefile:
> init/Kconfig:
> add config DISCARD_UNUSED_SECTIONS with appropriate
> big scary warning. It enables gcc and ld options
> for section garbage collection.

At it typically happens, last-minute "obviously correct" change was a mistake.

This doesn't work as intended:

LDFLAGS_vmlinux += $(call ld-option, --gc-sections)

With the above line, --gc-sections doesn't get added,
and vmlinux is not garbage collected.

It must be

LDFLAGS_vmlinux += --gc-sections

Sorry.
--
vda