[uClinux-dev] relocs problems with arm
DPattamatta at valencesemi.com
Wed Nov 28 21:46:05 EST 2001
Make sure that you are linking to proper bfd library when you are building
the elf2flt tool.
In the make file of elf2flt tool explicitly specify the bfd and iberty
If your make has
LDFLAGS = -L$(TOOLDIR)/lib -lbfd -liberty
replace it with
LDFLAGS = -L$(TOOLDIR)/lib $(TOOLDIR)/lib/libbfd.a $(TOOLDIR)/lib/libiberty
note: TOOLDIR is the directory where you install your arm cross compiler
Hope this solves your problem. And while building your program use ld -r.
From: Fabrice Gautier [mailto:Fabrice_Gautier at sdesigns.com]
Sent: Wednesday, November 28, 2001 5:32 PM
To: Uclinux-Dev (E-mail)
Subject: [uClinux-dev] relocs problems with arm
It seems that the relocation are all wrong in my binery flat file.
I'm using gcc-2.95.3, with no patch. I just want fully relocatable binary. I
dont need XIP and position independant code.
I'm not sure who to compile. First i tried with the uClibc gcc wrapper. I
converted the file using elf2flt. I also tried using arm-elf-gcc, then ld or
ld -r and elf2flt.
In any case the problems seems to be the same.
After elf2flt, I use flat_dump but it shows than there is no relocation
(reloc count is 0 in the header) in the flat binary, where there are plenty
in the elf file.
Where can i find a version of elf2flt that works on arm?
Software Engineer, Sigma Designs
Fabrice_Gautier at sdesigns.com
This message resent by the uclinux-dev at uclinux.org list server
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
More information about the uClinux-dev