[U-Boot] Porting U-Boot Issue - Linking fails
soderstrom
soderstrom.rikard at gmail.com
Wed Mar 19 14:51:42 CET 2014
Hi,
I'm attempting to port u-boot for NS7520 (arm7tdmi). My idea was to first
revive the port of NS9750 (removed in
commit4cfc611b4a4ce009cfad46804bec2a1caad8e329) and then rename and
configure it for NS7520 which is quite similar. But I've kind of hit a wall,
that I don't understand.
===========================================================
git clean -dfx > /dev/null && make ns9750dev_config all
....
LDS u-boot.lds
LD u-boot
arm-linux-gnueabi-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.23.2 assertion
fail ../../bfd/elf32-arm.c:7683
arm-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in
the linker script
arm-linux-gnueabi-ld.bfd: final link failed: Invalid operation
make[1]: *** [u-boot] Error 1
===========================================================
At first I thought this issue was thou to the toolchain I used. I expressed
these thoughts in #u-boot at freenode, but no matter which toolchain I use, I
always get this error, for this port. (Other configurations that are similar
builds without any noticeable issues.)
I have tried the following toolchains
1. ELDK-5.5 armv5te
2. arm-linux-gnueabi from gcc-arm-linux-gnueabi package
3. arm-none-eabi from gcc-arm-none-eabi package (ppa:terry.guo/gcc-embedded)
All resulting in the same build error. I have also tried using all three
different linkers that comes with the gcc-arm-linux-gnueabi package (ld,
ld.bfd and ld.gold), all of this also fails in the same way.
So all in all, it feels highly unlikely that this is a compiler issue.
It is rather something with the code
(https://github.com/soderstrom-rikard/u-boot/tree/ns9750)
Off course I've tried just adding the section .rel.plt to the linker
description script, this had no effect either.
I mimicked patch lists.denx.de/pipermail/u-boot/2010-November/081709.html
Can anyone help me? I feel so clueless about this, that it is ridiculous :)
Yours Sincerely
Rikard Söderström
--
View this message in context: http://u-boot.10912.n7.nabble.com/Porting-U-Boot-Issue-Linking-fails-tp176245.html
Sent from the U-Boot mailing list archive at Nabble.com.
More information about the U-Boot
mailing list