[uClinux-dev] elf2flt error with ARM Cortex-R4 toolchain

David McCullough david_mccullough at mcafee.com
Fri Jul 20 00:53:20 EDT 2012


Jivin Pankaj DEV lays it down ...
> Hello,
> 
> I am using ARM-Versatile Cortex-R4 platform and I have toolchain build with following components? versions :
> 
> 1.       GNU GCC : 4.6.3 20120301
> 2.       GNU Binutils - 2.20.51.20100809
> 3.       uClibc-nptl-0.9.33-66
> 
> To build the user application binary (FLAT), I downloaded the following(latest) version of ELF2FLT package from http://blackfin.uclinux.org/git/?p=users/vapier/elf2flt.git;a=summary 
> 
> 2011-04-04
> 
> 	David McCullough <http://blackfin.uclinux.org/git/?p=users/vapier/elf2flt.git;a=search;s=David+McCullough;st=author> 
> 
> 	The GNU linker uses -v as a shortcut to --version,... <http://blackfin.uclinux.org/git/?p=users/vapier/elf2flt.git;a=commit;h=40f0d175e0847d922faa85cc18ec01f2129bb2b9> 


My only question is why you are using the blackfin version of elf2flt for
an ARM system ?  It may be fine,  I don't really know,  but its primary
purpose would be blackfind support I suspect ;-)

I haven't played with elf2flt for a long time,  but there are working ARM
toolchains out there with elf2flt included.  Build your ARM tool chain, then
try this version of elf2flt:

	http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/elf2flt/

Otherwise,  hopefully someone on the list is currently using something and
can help you,

Cheers,
Davidm




> I was able to build the package properly and install it in my existing (above) toolchain, but now when I try to build a simple (hello) C user program using ?Wl,-elf2flt options, I am getting following errors :
> 
> a.       /root/distro-armv7r/STLinux-2.4/devkit/armv7r_uclibc/arm-cortex-linux-uclibcgnueabi/bin/ld.real: section .junk loaded at [00000000,0000001f] overlaps section .text loaded at [00000000,0000011f]
> 
> b.      /root/distro-armv7r/STLinux-2.4/devkit/armv7r_uclibc/arm-cortex-linux-uclibcgnueabi/bin/ld.real: BFD (GNU Binutils - STMicroelectronics/Linux Base) 2.20.51.20100809 assertion fail ../../bfd/elf32-arm.c:13377
> 
>  
> 
> Any Idea ? 
> 
>  
> 
> My doubt : 
> 
> Is ELF2FLT package compatible with the above mentioned versions of GCC/Binutils/uClibc for ARM-R4 used ? 
> 
> If anybody has tried to build a toolchain for ARM with this ELF2FLT package, can u help us with the versions of GCC/Binutils/uClibc ? 
> 
> Or may be if anyone knows any working ARM-CortexR4 working toolchain containing ELF2FLT ?
> 
>  
> 
> Regards
> 
> Pankaj Dev
> 
> 

-- 
David McCullough,      david_mccullough at mcafee.com,  Ph:+61 734352815
McAfee - SnapGear      http://www.mcafee.com         http://www.uCdot.org



More information about the uClinux-dev mailing list