Ping Re: Text relocations in PIEs

Khem Raj kraj at mvista.com
Thu Nov 15 18:16:41 UTC 2007


-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPI0JUjbQJxVzeZQRArjnAJ9Lv7RQkFGcz6d4XtH4mRtYA4yN/QCgm1CG
0g8X/HN6rmW/bSpfMqByARA=
=7gp1
-----END PGP SIGNATURE-----



More information about the uClibc mailing list