public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
@ 2011-10-30  9:47 Dirk Behme
  2011-10-30 10:24 ` Albert ARIBAUD
  0 siblings, 1 reply; 6+ messages in thread
From: Dirk Behme @ 2011-10-30  9:47 UTC (permalink / raw)
  To: u-boot


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?

Best regards

Dirk

[1] gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)

[2]
 > ./MAKEALL ARMV7

Configuring for highbank board... 

arm-none-linux-gnueabi-ld: section .bss [00024f90 -> 000279a7] 
overlaps section .rel.dyn [00024f90 -> 00028b2f]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x24f90 overlaps 
previous sections
make: *** [u-boot] Error 1 


Configuring for efikamx - Board: efikamx, Options: 
MACH_TYPE=MACH_TYPE_MX51_EFIKAMX,IMX_CONFIG=board/efikamx/imximage_mx.cfg
arm-none-linux-gnueabi-ld: section .bss [9782ab3c -> 9785d21b] 
overlaps section .rel.dyn [9782ab3c -> 9782ef4b]
arm-none-linux-gnueabi-ld: section .dynsym [9782ef4c -> 9782f00b] 
overlaps section .bss [9782ab3c -> 9785d21b]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x9782ab3c 
overlaps previous sections
make: *** [u-boot] Error 1 


Configuring for efikasb - Board: efikamx, Options: 
MACH_TYPE=MACH_TYPE_MX51_EFIKASB,IMX_CONFIG=board/efikamx/imximage_sb.cfg
arm-none-linux-gnueabi-ld: section .bss [9782aac4 -> 9785d1a3] 
overlaps section .rel.dyn [9782aac4 -> 9782eee3]
arm-none-linux-gnueabi-ld: section .dynsym [9782eee4 -> 9782efa3] 
overlaps section .bss [9782aac4 -> 9785d1a3]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x9782aac4 
overlaps previous sections
make: *** [u-boot] Error 1 


Configuring for omap3_pandora board... 

arm-none-linux-gnueabi-ld: section .bss [8005d1b0 -> 8008fdab] 
overlaps section .rel.dyn [8005d1b0 -> 80063e67]
arm-none-linux-gnueabi-ld: section .dynsym [80063e68 -> 80063f27] 
overlaps section .bss [8005d1b0 -> 8008fdab]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8005d1b0 
overlaps previous sections
make: *** [u-boot] Error 1 


Configuring for igep0030 board... 

arm-none-linux-gnueabi-ld: section .bss [8003c450 -> 8006e0ff] 
overlaps section .rel.dyn [8003c450 -> 8004187f]
arm-none-linux-gnueabi-ld: section .dynsym [80041880 -> 8004193f] 
overlaps section .bss [8003c450 -> 8006e0ff]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8003c450 
overlaps previous sections
 

Configuring for am3517_crane board... 

arm-none-linux-gnueabi-ld: section .bss [8003cdac -> 80079267] 
overlaps section .rel.dyn [8003cdac -> 80041df3]
arm-none-linux-gnueabi-ld: section .dynsym [80041df4 -> 80041eb3] 
overlaps section .bss [8003cdac -> 80079267]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8003cdac 
overlaps previous sections

Configuring for am3517_evm board... 

arm-none-linux-gnueabi-ld: section .bss [8003ce30 -> 800792ef] 
overlaps section .rel.dyn [8003ce30 -> 80041e77]
arm-none-linux-gnueabi-ld: section .dynsym [80041e78 -> 80041f37] 
overlaps section .bss [8003ce30 -> 800792ef]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8003ce30 
overlaps previous sections
make: *** [u-boot] Error 1 


Configuring for omap3_zoom1 board... 

arm-none-linux-gnueabi-ld: section .bss [80040c54 -> 8007295b] 
overlaps section .rel.dyn [80040c54 -> 800463fb]
arm-none-linux-gnueabi-ld: section .dynsym [800463fc -> 800464bb] 
overlaps section .bss [80040c54 -> 8007295b]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x80040c54 
overlaps previous sections
make: *** [u-boot] Error 1 


Configuring for omap4_panda board... 

arm-none-linux-gnueabi-ld: section .bss [8012ab6c -> 8015c6b7] 
overlaps section .rel.dyn [8012ab6c -> 8012f44b]
arm-none-linux-gnueabi-ld: section .dynsym [8012f44c -> 8012f50b] 
overlaps section .bss [8012ab6c -> 8015c6b7]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8012ab6c 
overlaps previous sections
make: *** [u-boot] Error 1

Configuring for omap4_sdp4430 board... 

arm-none-linux-gnueabi-ld: section .bss [8012ae74 -> 8015c9bf] 
overlaps section .rel.dyn [8012ae74 -> 8012f7db]
arm-none-linux-gnueabi-ld: section .dynsym [8012f7dc -> 8012f89b] 
overlaps section .bss [8012ae74 -> 8015c9bf]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0x8012ae74 
overlaps previous sections
make: *** [u-boot] Error 1 


Configuring for harmony board... 

arm-none-linux-gnueabi-ld: section .bss [00e2e3ac -> 00e63347] 
overlaps section .rel.dyn [00e2e3ac -> 00e321eb]
arm-none-linux-gnueabi-ld: section .dynsym [00e321ec -> 00e322ab] 
overlaps section .bss [00e2e3ac -> 00e63347]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0xe2e3ac overlaps 
previous sections
make: *** [u-boot] Error 1

Configuring for seaboard board...
arm-none-linux-gnueabi-ld: section .bss [00e2e430 -> 00e633cf] 
overlaps section .rel.dyn [00e2e430 -> 00e3226f]
arm-none-linux-gnueabi-ld: section .dynsym [00e32270 -> 00e3232f] 
overlaps section .bss [00e2e430 -> 00e633cf]
arm-none-linux-gnueabi-ld: u-boot: section .bss vma 0xe2e430 overlaps 
previous sections
make: *** [u-boot] Error 1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Albert ARIBAUD @ 2011-10-30 10:24 UTC (permalink / raw)
  To: u-boot

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.

> Best regards
>
> Dirk

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
  2011-10-30 10:24 ` Albert ARIBAUD
@ 2011-10-30 10:57   ` Albert ARIBAUD
  2011-10-30 11:33     ` Dirk Behme
  0 siblings, 1 reply; 6+ messages in thread
From: Albert ARIBAUD @ 2011-10-30 10:57 UTC (permalink / raw)
  To: u-boot

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?

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
  2011-10-30 10:57   ` Albert ARIBAUD
@ 2011-10-30 11:33     ` Dirk Behme
  2011-10-30 12:46       ` Albert ARIBAUD
  0 siblings, 1 reply; 6+ messages in thread
From: Dirk Behme @ 2011-10-30 11:33 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
  2011-10-30 11:33     ` Dirk Behme
@ 2011-10-30 12:46       ` Albert ARIBAUD
  2011-10-30 16:05         ` Albert ARIBAUD
  0 siblings, 1 reply; 6+ messages in thread
From: Albert ARIBAUD @ 2011-10-30 12:46 UTC (permalink / raw)
  To: u-boot

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?

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] ARM ld: section .bss overlaps section .rel.dyn
  2011-10-30 12:46       ` Albert ARIBAUD
@ 2011-10-30 16:05         ` Albert ARIBAUD
  0 siblings, 0 replies; 6+ messages in thread
From: Albert ARIBAUD @ 2011-10-30 16:05 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-30 16:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox