linker problem with xip kernel and recent toolchains

Pawel Moll pawel.moll at arm.com
Tue Dec 11 08:01:34 EST 2012


Hi Marc,

On Tue, 2012-12-04 at 14:46 +0000, Marc Kleine-Budde wrote:
> we've just discovered a linker problem with newer toolchains, that
> support --build-id and xip kernels. The resulting vmlinux is about 13
> MiB big, but the xipimage ~2GiB.
> 
> A look at the vmlinux's objdump shows that the .notes section is around
> 2 GiB and it's placed by the linker script into the RAM. With the ROM
> starting at 0x0 this results into a ~2 GiB big image.
> 
> >   [16] .data             PROGBITS        88008000 0a0000 012aa0 00  WA  0   0 256
> >   [17] .notes            NOTE            8801aaa0 0b2aa0 000024 00  AX  0   0  4
> >   [18] .bss              NOBITS          8801aae0 0b2ac4 005414 00  WA  0   0 32
> 
> After discarding the .notes section in the objcopy (see patch below) the
> resulting binary images has a proper size again.

Could you please send me the configuration you're using to get the XIP
kernel? I'll try to get my head around this problem and check how other
architectures are dealing with the problem.

Thanks!

Paweł





More information about the linux-arm-kernel mailing list