]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
authorLennert Buytenhek <buytenh@wantstofly.org>
Fri, 12 Oct 2007 13:38:54 +0000 (14:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 12 Oct 2007 22:43:50 +0000 (23:43 +0100)
commit3eb526dee702e728a972858a3f0bc3f7f606ff61
treedb272f98f5772d42a447fe893c7b4b277d9381a8
parentcddc8afff997ea7c091aaf7a505dc30988c3cc82
[ARM] 4600/1: fix kernel build failure with build-id-supporting binutils

Newer versions of binutils support --build-id, which adds an ELF
note section called ".note.gnu.build-id" to the output.  On the ARM
kernel build, because there is no explicit mention of this section
in the shipped ld script, this section is placed at vaddr 0x00000000
(whereas the normal kernel text/data typically starts at vaddr
0xc0008000), causing the output of objcopy (Image) to produce a 3G+
file.

This patch makes objcopy strip the .note.gnu.build-id section from
the Image file along with all other note sections, which fixes the
build.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Makefile