]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Eliminate unused sections at link-time
authorMichael Brown <mcb30@ipxe.org>
Tue, 22 Feb 2011 19:36:24 +0000 (19:36 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Feb 2011 21:02:00 +0000 (21:02 +0000)
commit623469de5d307ee6d762ad30988ffbfbc53741b6
treec30f937ccd76d6b1f824a126afd331590dda7e32
parentf3c72660a7993ca21e0af125f052a21ade54039a
[build] Eliminate unused sections at link-time

Use -ffunction-sections, -fdata-sections, and --gc-sections to
automatically prune out any unreferenced sections.

This saves around 744 bytes (uncompressed) from the rtl8139.rom build.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping
src/arch/i386/scripts/i386-kir.lds
src/arch/i386/scripts/i386.lds
src/arch/i386/scripts/linux.lds
src/arch/x86/scripts/efi.lds
src/arch/x86_64/scripts/linux.lds