[uClibc] Buildroot and elf2flt on arm

Vadim Lebedev vadim at mbdsys.com
Mon Aug 22 13:59:43 UTC 2005


David Hallas Andersen wrote:

>Thanks for the quick reply, but where should I put these flags? Can I pass 
>them to configure and put them in that way, or do I have to edit the 
>Makefiles after the configure pass, or is there an environmental variable I 
>can set?
>
>Perhaps we can make an official way of doing this and commit it to buildroot?
>
>/David
>
>On Monday 22 August 2005 12:15, Vadim Lebedev wrote:
>  
>
>>David Hallas Andersen wrote:
>>    
>>
>>>Now i successfully compiled elf2flt from the uClinux CVS server with
>>>buildroot, but I am getting reloc outside program errors when running the
>>>binary on my arm target. Also file tells me that the pic flag is set in
>>>the flat binary, how do I disable that? I have tryed linking with
>>>-static, but it doesn't help. I was thinking if it could be uClinux
>>>kernel that is too old? I am running uClinux 2.4.22-uc0
>>>
>>>Any help is greatly appreciated :)
>>>
>>>/David
>>>
>>>      
>>>
>>>>On
>>>>        
>>>>
>>David,
>>
>>I think you need to hack  the toolchain buidling machinery in buildroot
>>to compile
>>libgcc and uclibc  with the correct code generation flags (-fPIC
>>-msingle-pic-base)
>>otherwise the generated flat binaries will be invalid.
>>
>>
>>Vadim
>>    
>>
Actually i don't know, where to put it....

But maybe Eric Andersen knows.....


Vadim



More information about the uClibc mailing list