[U-Boot] ARM: problem with linker option -pie

Darius Augulis
2010-10-31T17:38:35Z

On 10/31/2010 12:17 AM, Wolfgang Denk wrote:
> Dear Darius Augulis,
>
> In message<4CCC85B4.6060102@gmail.com> you wrote:
>>
>>> Sorry, but this is not a solution. You may use this as momentary
>>> workaround if you need a running system, but it cannot go into
>>> mainline.
>>
>> Of course not. I just wanted inform that -pie is not working.
>> Actually I don't know how to fix it correctly. It's may be interesting
>> for more people, especially who wrote relocation code.
>
> Which exact tool chain are you using?

I use toolchain from Buildroot compiled from sources on my ubuntu 10.04
host. I have made some testing today:

gcc 4.4.5 + binutils 2.19 - works ok
gcc 4.2.4 + binutils 2.19 - works ok
gcc 4.4.5 + binutils 2.20.1 - fails
gcc 4.2.4 + binutils 2.20.1 - fails
gcc 4.4.5 + binutils 2.20 - fails

Results show that it doesn't depend on compiler version and depends only
on binutils - v2.20 and higher versions doesn't work.

Darius.

>
> Do you have a chance to build with ELDK 4.2?
>
> Or, if your code is all in mainline (or you are willing to send me
> patches), would you test an image that I compile for you, using LDK
> 4.2?
>
> Best regards,
>
> Wolfgang Denk
>