Skip to contentSkip to conversation

ARM ld: section .bss overlaps section .rel.dyn

U-Boot Dirk Behme 2 participants 6 messages Oct 30, 2011

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

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]

Quoted 1 line

./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

#1 lore raw

Hi Dirk,

Le 30/10/2011 10:47, Dirk Behme a ?crit :

Quoted 10 lines

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

Quoted 4 lines

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.

Quoted 3 lines

Best regards

Dirk

Amicalement,

Signature · 1 line
Albert.
#2 lore raw

Le 30/10/2011 11:24, Albert ARIBAUD a ?crit :

Quoted 16 lines

Hi Dirk,

Le 30/10/2011 10:47, Dirk Behme a ?crit :

Quoted 13 lines

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.

Quoted 8 lines
Quoted 1 line

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,

Signature · 1 line
Albert.
author
#3 lore raw
Quoted 28 lines · Albert ARIBAUD

Le 30/10/2011 11:24, Albert ARIBAUD a ?crit :

Quoted 19 lines

Hi Dirk,

Le 30/10/2011 10:47, Dirk Behme a ?crit :

Quoted 11 lines

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

Quoted 4 lines

for various boards [2]. I wasn't able to track this down to specific commit, yet.

Anybody with an idea?

Quoted 7 lines

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.

Quoted 7 lines

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:

Quoted 1 line

git rev-parse HEAD

3cce8a5496452285e1828984ad3945417205cfc3

Quoted 2 lines

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 )
----------------------------------------------------------

...

Quoted 1 line

git rev-parse HEAD

70d52f9a4e661f00814ed2160bdedd3cc49aa44c

Quoted 2 lines

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

#4 lore raw

Le 30/10/2011 12:33, Dirk Behme a ?crit :

Quoted 27 lines · Albert ARIBAUD
Quoted 26 lines

Le 30/10/2011 11:24, Albert ARIBAUD a ?crit :

Quoted 25 lines

Hi Dirk,

Le 30/10/2011 10:47, Dirk Behme a ?crit :

Quoted 11 lines

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

Quoted 4 lines

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.

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

I'll have a look today.

I've tried ./MAKEALL efikamx with ELDK32, and did not see any warning

That was ELDK42, of course.

Quoted 29 lines
Quoted 6 lines

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:

Quoted 1 line

git rev-parse HEAD

3cce8a5496452285e1828984ad3945417205cfc3

Quoted 2 lines

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

Quoted 4 lines

--------------------- 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,

Signature · 1 line
Albert.
#5 lore raw

Le 30/10/2011 13:46, Albert ARIBAUD a ?crit :

Quoted 75 lines

Le 30/10/2011 12:33, Dirk Behme a ?crit :

Quoted 27 lines · Albert ARIBAUD
Quoted 26 lines

Le 30/10/2011 11:24, Albert ARIBAUD a ?crit :

Quoted 25 lines

Hi Dirk,

Le 30/10/2011 10:47, Dirk Behme a ?crit :

Quoted 11 lines

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

Quoted 4 lines

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.

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

I'll have a look today.

I've tried ./MAKEALL efikamx with ELDK32, and did not see any warning

That was ELDK42, of course.

Quoted 29 lines
Quoted 6 lines

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:

Quoted 1 line

git rev-parse HEAD

3cce8a5496452285e1828984ad3945417205cfc3

Quoted 2 lines

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

Quoted 4 lines

--------------------- 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

Quoted 7 lines

--------------------- 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?

Quoted 1 line

Amicalement,

Amicalement,

Signature · 1 line
Albert.