Ping Re: Text relocations in PIEs

Carmelo AMOROSO carmelo.amoroso at st.com
Fri Nov 16 14:38:28 UTC 2007


Khem Raj wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Joseph S. Myers wrote:
>   
>> On Thu, 15 Nov 2007, Steven J. Hill wrote:
>>
>>     
>>>> Ping.  This patch 
>>>> <http://www.uclibc.org/lists/uclibc/2007-October/018617.html> is pending 
>>>> review.
>>>>
>>>>         
>>> Do you have a test case to show how it fails and then it passes when
>>> the patch is applied? Thanks.
>>>       
>> Compile "hello, world" to a .o file without -fpie/-fPIE/-fpic/-fPIC.
>>
>> Link the resulting .o file into an executable with -pie.
>>
>> The resulting executable crashes with either uClibc configuration without 
>> the patch, and works or gives a runtime error after the patch depending on 
>> the __FORCE_SHAREABLE_TEXT_SEGMENTS__ setting.
>>
>> (Might not apply when objects are PIC by default as on MIPS; tested on 
>> ARM.)
>>
>>     
> yes. I can confirm that on ARM.
>
> - --
> Khem Raj
>   
Merged, thanks.

Carmelo



More information about the uClibc mailing list