On Saturday 24 November 2007 15:14, Denys Vlasenko wrote: > 3.gc > The meat of the patchset is here. > Introduce config option DISCARD_UNUSED_SECTIONS. > If it is selected: > Pass -ffunction-sections -fdata-sections to gcc and > --gc-sections --print-gc-sections to ld. > Use arch/$(SRCARCH)/kernel/modules.lds.S linker script for linking *.ko > files. > Generate linker map files for vmlinux and modules. > Add *(.text.*), *(.data.*) wildcards to linker scripts to accomodate > new kinds of sections generated by gcc. > Add KEEP() directives to sections which must not be > discarded. Fix arch/frv/Makefile to use DISCARD_UNUSED_SECTIONS instead > of what seems to be a vestigial custom solution. Signed-off-by: Denys Vlasenko -- vda