]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ARM: use unified discard definition in linker script
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Sat, 7 Nov 2009 21:03:52 +0000 (21:03 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 15 Dec 2009 05:58:18 +0000 (16:28 +1030)
commite3f28c1333acfe9e4109b836bc15caf794e94d09
tree7330615472fd4f58cbc0dad368fd9b6837cb268f
parente6428047725d72d63c1d9c4ba852e635e3ffe52a
ARM: use unified discard definition in linker script

Commit 023bf6f "linker script: unify usage of discard definition"
changed the linker scripts for all architectures except for ARM.
I can find no discussion about this ommision, so here are the changes
for ARM.

These changes are exactly parallel to the ia64 case.

"ia64 is notable because it first throws away some ia64 specific
 subsections and then include the rest of the sections into the final
 image, so those sections must be discarded before the inclusion."

Not boot-tested.  In build testing, the modified linker script generated
an identical vmlinux file.

[I would like to be able to rely on this unified discard definition.
 I want to sort the kernel symbol tables to allow faster symbol
 resolution during module loading. The simplest way appears to be
 to generate sorted versions from vmlinux.o, link them in to vmlinux,
 _and discard the original unsorted tables_.

 This work is driven by my x86 netbook, but it is implemented at a
 generic level. It is possible it will benefit some ARM systems also.]

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by-without-testing: Tejun Heo <tj@kernel.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/arm/kernel/vmlinux.lds.S