[U-Boot] ARM ld: section .bss overlaps section .rel.dyn
Dirk Behme
dirk.behme at googlemail.com
Sun Oct 30 12:33:13 CET 2011
On 30.10.2011 11:57, Albert ARIBAUD wrote:
> Le 30/10/2011 11:24, Albert ARIBAUD a écrit :
>> Hi Dirk,
>>
>> Le 30/10/2011 10:47, Dirk Behme a écrit :
>>>
>>> Doing a ./MAKEALL ARMV7 (gcc [1]) with the recent git head I get a
>>> lot of
>>>
>>> arm-none-linux-gnueabi-ld: section .bss [...] overlaps section
>>> .rel.dyn [...]
>>> arm-none-linux-gnueabi-ld: section .dynsym [...] overlaps section .bss
>>> [...]
>>> ...
>>> make: *** [u-boot] Error 1
>>>
>>> for various boards [2]. I wasn't able to track this down to specific
>>> commit, yet.
>>>
>>> Anybody with an idea?
>>
>> Weird... Linker file says explicitly that .bss does overlay above
>> .rel.dyn, so the first message should not ever happen. As for the
>> second, it could happen depending on the bss, .re.dyn and .dynsym
>> sizes,
>> maybe.
>>
>> I'll have a look today.
>
> I've tried ./MAKEALL efikamx with ELDK32, and did not see any warning
> nn either u-boot/master (ce5207e191c59b3135303fd03b98dd2ac3701ba2) or
> u-boot-arm/master (8305f7e98b5f7b9b6070777e68f3fe1871b9cd92).
>
> Can you check your setup for locally modified/added files and let me
> know which exact commit ID you're building in (git rev-parse HEAD) and
> which ARM repo it is from?
I'm using u-boot/master (ce5207e191c59b3135303fd03b98dd2ac3701ba2).
Anyway, git bisect seems to point to
http://git.denx.de/?p=u-boot.git;a=commit;h=3cce8a5496452285e1828984ad3945417205cfc3
Not sure why, though. Using omap3_pandora as an example:
> git rev-parse HEAD
3cce8a5496452285e1828984ad3945417205cfc3
> make distclean
> ./MAKEALL omap3_pandora
Configuring for omap3_pandora board...
arm-none-linux-gnueabi-ld: section .bss [8005d1e8 -> 8008fddb]
overlaps section .rel.dyn [8005d1e8 -> 80063e97]
arm-none-linux-gnueabi-ld: section .dynsym [80063e98 -> 80063f57]
overlaps section .bss [8005d1e8 -> 8008fddb]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8005d1e8
overlaps previous sections
make: *** [u-boot] Error 1
size: './u-boot': No such file
--------------------- SUMMARY ----------------------------
Boards compiled: 1
Boards with warnings or errors: 1 ( omap3_pandora )
----------------------------------------------------------
...
> git rev-parse HEAD
70d52f9a4e661f00814ed2160bdedd3cc49aa44c
> make distclean
> ./MAKEALL omap3_pandora
Configuring for omap3_pandora board...
text data bss dec hex filename
368690 7972 207860 584522 8eb4a ./u-boot
--------------------- SUMMARY ----------------------------
Boards compiled: 1
----------------------------------------------------------
Hmm?
Best regards
Dirk
More information about the U-Boot
mailing list