Ping Re: Text relocations in PIEs

Joseph S. Myers joseph at
Thu Nov 15 17:26:35 UTC 2007

On Thu, 15 Nov 2007, Steven J. Hill wrote:

> > Ping.  This patch 
> > <> 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 

(Might not apply when objects are PIC by default as on MIPS; tested on 

Joseph S. Myers
joseph at

More information about the uClibc mailing list