From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
Date: Sun, 30 Oct 2011 17:05:23 +0100 [thread overview]
Message-ID: <4EAD75C3.9070707@aribaud.net> (raw)
In-Reply-To: <4EAD471B.40902@aribaud.net>
Le 30/10/2011 13:46, Albert ARIBAUD a ?crit :
> Le 30/10/2011 12:33, Dirk Behme a ?crit :
>> 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
>
> That was ELDK42, of course.
>
>>> 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 )
>> ----------------------------------------------------------
>
> Builds fine with ELDK42 on my side.
>
> uboot at lilith:~/src/u-boot-arm$ ./MAKEALL omap3_pandora
> Configuring for omap3_pandora board...
> text data bss dec hex filename
> 377621 7936 207840 593397 90df5 ./u-boot
>
> --------------------- SUMMARY ----------------------------
> Boards compiled: 1
> ----------------------------------------------------------
> uboot at lilith:~/src/u-boot-arm$ git rev-parse HEAD
> 3cce8a5496452285e1828984ad3945417205cfc3
>
> Can you double-check your toolchain and host OS?
2009q1 shows the issue, but 2010q1 does not, nor does 2011q although it
gives the following warning:
arm-none-eabi-ld: warning:
/opt/arm-2011q1/bin/../lib/gcc/arm-none-eabi/4.5.2/libgcc.a(_bswapsi2.o)
uses variable-size enums yet the output is to use 32-bit enums; use of
enum values across objects may fail
As for the overlap issue: I see no significant difference in the map
files generated by 2009q1 and by 2010q1. I wonder if this could be a
change in the default state of the --check-sections option of ld?
> Amicalement,
Amicalement,
--
Albert.
prev parent reply other threads:[~2011-10-30 16:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-30 9:47 [U-Boot] ARM ld: section .bss overlaps section .rel.dyn Dirk Behme
2011-10-30 10:24 ` Albert ARIBAUD
2011-10-30 10:57 ` Albert ARIBAUD
2011-10-30 11:33 ` Dirk Behme
2011-10-30 12:46 ` Albert ARIBAUD
2011-10-30 16:05 ` Albert ARIBAUD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EAD75C3.9070707@aribaud.net \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.