[uClibc] Buildroot and elf2flt on arm

vadim at mbdsys.com vadim at mbdsys.com
Tue Aug 23 01:00:00 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
>>    
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>uClibc mailing list
>>uClibc at uclibc.org
>>http://uclibc.org/mailman/listinfo/uclibc
>>    
>>

I've just had a another idea.... 
I think it is possible to configure buildroot to ues 'external' 
toolchain....  
So you can simply pull arm-uclinux-gcc   form uClinux site and use it 
with buildroot


Vadim




More information about the uClibc mailing list