Re: [PATCH 3/3] build system: section garbage collection for vmlinux
From: Denys Vlasenko
Date: Wed Sep 05 2007 - 14:40:35 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/