[okl4-developer] Elfweaver Failure
Robert Wetzel
robert.wetzel at opensynergy.com
Thu Nov 20 19:59:14 EST 2008
Malcolm Purvis wrote:
> Thanks for the extra detail. Could you also send the output of 'readelf
> -e' on the kernel file, plus the command that you used to create the
> files and build the image? Are you using the toolchains downloaded from
> our site?
>
> What mystifies me is the duplicate kernel sections in image.elf:
>
> [29] kernel.text PROGBITS f0000000 008000 013bc4 00 AX 0 0 32
> [30] kernel.text PROGBITS f0000000 038000 013bc4 00 AX 0 0 32
> [31] kernel.rodata PROGBITS f0013bc4 01bbc4 00853c 00 A 0 0 8
> [32] kernel.rodata PROGBITS f0013bc4 04bbc4 00853c 00 A 0 0 8
>
> That's very wrong, and I'm not surprised that 'elfweaver modify' is
> having trouble with it.
I've stumbled into these, but they never raised the red flag; thanks for pointing
that out. Following this, I've run some tests, and it boils down to a problem initially
generated by the toolchain. There are three I tested the build with: The gcc 3.4.4 NICTA
toolchain, and two "homegrown" gcc toolchains, 3.4.6 and 4.1.1. The version 3 toolchains
went both through smooth, however the 4.1.1 toolchain generates the mentioned problems.
Looking at the readelf output (see below / attachments) shows that the most obvious
difference are the two additional sections generated by gcc 4.1.1:
[15] .ctors PROGBITS f002e000 036000 000004 00 WA 0 0 4
[16] .text._ZN18tcb_sy PROGBITS f002f000 067000 000064 00 AX 0 0 4
Maybe these are the cause for the problems, no idea.
The command line I used to build was 2.1 style:
tools/build.py machine=gumstix project=iguana pyfreeze=false toolprefix=${TOOLCHAIN_PREFIX}
(without the toolprefix argument when using the NICTA toolchain). The kernel as such starts up
using the gcc 3.x builds; the userland obviously needs a different compiler as outlined in other
posts (is there something like "pistachio.toolprefix" as build option?).
Robert
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: readelf-3.4.6.txt
Url: http://lists.okl4.org/pipermail/developer/attachments/20081120/b0d5d88c/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: readelf-4.1.1.txt
Url: http://lists.okl4.org/pipermail/developer/attachments/20081120/b0d5d88c/attachment-0001.txt
More information about the Developer
mailing list