public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] OMAP3: EVM: Linker errors across tool chain versions
Date: Thu, 16 Dec 2010 11:10:25 +0100	[thread overview]
Message-ID: <4D09E591.4060301@googlemail.com> (raw)
In-Reply-To: <20101214162133.17F3CBB0BA@gemini.denx.de>

On 14.12.2010 17:21, Wolfgang Denk wrote:
> Dear Dirk,
>
> In message<4D079060.70104@googlemail.com>  you wrote:
>>
>> I did a readelf analysis for 3 test cases (with 2009q1-203):
>
> Which exact versions of GCC and binutils is this?

gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203). For binutils 
versions (linker) see below.

> Do we see any differences in board/ti/evm/evm.o ?

I compiled 'omap3_evm' with only above tool chain. Then linked with 
four different linkers, see your next question. I.e. it's always the 
same board/ti/evm/evm.o linked with four different linkers.ll

> Can just use a different linker?

Yes. Compile 'omap3_evm' with 2009q1-203 and link the objects with 
four different linkers:

GNU ld (Sourcery G++ Lite 2009q1-203) 2.19.51.20090205
arm-2009q1/bin/arm-none-linux-gnueabi-ld: section .bss [8003f5e0 -> 
8007e337] overlaps section .rel.dyn [8003f5e0 -> 80044e57]
arm-2009q1/bin/arm-none-linux-gnueabi-ld: section .dynsym [80044e58 -> 
80044ef7] overlaps section.bss [8003f5e0 -> 8007e337]
arm-2009q1/bin/arm-none-linux-gnueabi-ld: u-boot: section .bss vma 
0x8003f5e0 overlaps previous sections
ls: Access to u-boot not possible: File or directory not found


GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
arm-2009q3/bin/arm-none-linux-gnueabi-ld: u-boot: section .bss vma 
0x8003f5e0 overlaps previous sections
-rwxr-xr-x 1 dirk users 911743 16. Dez 10:30 u-boot


GNU ld (Sourcery G++ Lite 2010q1-202) 2.19.51.20090709
arm-2010q1/bin/arm-none-linux-gnueabi-ld: u-boot: section .bss vma 
0x8003f5e0 overlaps previous sections
-rwxr-xr-x 1 dirk users 911743 16. Dez 10:30 u-boot


GNU ld (Sourcery G++ Lite 2010.09-50) 2.20.51.20100809
-rwxr-xr-x 1 dirk users 911743 16. Dez 10:30 u-boot

> Or use a different tool chain for the compilation part, and use the
> linker from 2009q1-203 ?

Using then the most recent Codesourcery gcc version 4.5.1 (Sourcery 
G++ Lite 2010.09-50) for compilation and the same linkers as above for 
the linking stage results in


GNU ld (Sourcery G++ Lite 2009q1-203) 2.19.51.20090205
arm-2009q1/bin/arm-none-linux-gnueabi-ld: u-boot: Unknown mandatory 
EABI object attribute 44
arm-2009q1/bin/arm-none-linux-gnueabi-ld: failed to merge target 
specific data of file arch/arm/cpu/armv7/libarmv7.o 
 

....
arm-2009q1/bin/arm-none-linux-gnueabi-ld: section .bss [8003e158 -> 
8007ceaf] overlaps section .rel.dyn [8003e158 -> 80043897] 
 

arm-2009q1/bin/arm-none-linux-gnueabi-ld: section .dynsym [80043898 -> 
80043937] overlaps section .bss [8003e158 -> 8007ceaf] 
 

arm-2009q1/bin/arm-none-linux-gnueabi-ld: u-boot: section .bss vma 
0x8003e158 overlaps previous sections 
 

ls: Access to u-boot not possible: File or directory not found 



GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
arm-2009q3/bin/arm-none-linux-gnueabi-ld: u-boot: Unknown mandatory 
EABI object attribute 44
arm-2009q3/bin/arm-none-linux-gnueabi-ld: failed to merge target 
specific data of file arch/arm/cpu/armv7/libarmv7.o 
 

....
arm-2009q3/bin/arm-none-linux-gnueabi-ld: u-boot: section .bss vma 
0x8003e158 overlaps previous sections
ls: Access to u-boot not possible: File or directory not found


GNU ld (Sourcery G++ Lite 2010q1-202) 2.19.51.20090709
arm-2010q1/bin/arm-none-linux-gnueabi-ld: u-boot: section .bss vma 
0x8003e158 overlaps previous sections
-rwxr-xr-x 1 dirk users 981801 16. Dez 10:41 u-boot


GNU ld (Sourcery G++ Lite 2010.09-50) 2.20.51.20100809
-rwxr-xr-x 1 dirk users 981801 16. Dez 10:41 u-boot

> I would really like to nail this down to a specific tool / version.

Does this help?

Thanks

Dirk

  reply	other threads:[~2010-12-16 10:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-12  8:25 [U-Boot] OMAP3: EVM: Linker errors across tool chain versions Dirk Behme
2010-12-12 10:08 ` Albert ARIBAUD
2010-12-12 10:32   ` Dirk Behme
2010-12-12 11:40     ` Albert ARIBAUD
2010-12-14 15:42       ` Dirk Behme
2010-12-14 16:01         ` Albert ARIBAUD
2010-12-14 16:14           ` Wolfgang Denk
2010-12-16 13:47           ` Alexander Holler
2010-12-16 14:31             ` Alexander Holler
2010-12-16 15:20             ` Dirk Behme
2010-12-16 16:55               ` Alexander Holler
2010-12-14 16:21         ` Wolfgang Denk
2010-12-16 10:10           ` Dirk Behme [this message]
2010-12-17 10:39             ` Dirk Behme
2010-12-30 12:04               ` Premi, Sanjeev

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=4D09E591.4060301@googlemail.com \
    --to=dirk.behme@googlemail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox