[PATCH] [BZ #17841]: Build failure if compiler defaults to PIE

Mike Frysinger vapier@gentoo.org
Thu May 28 16:11:00 GMT 2015


On 28 May 2015 08:06, H.J. Lu wrote:
> On Thu, May 28, 2015 at 7:59 AM, Mike Frysinger wrote:
> > On 28 May 2015 06:05, H.J. Lu wrote:
> >> To support building glibc with GCC 6 configured with --enable-default-pie,
> >> which generates PIE by default, we need to build programs as PIE.  But
> >> elf/tst-dlopen-aout must not be built as PIE since it tests dlopen on
> >> ET_EXEC file and PIE is ET_DYN.
> >
> > i think you're going to need more patches than this to make it work.  Gentoo
> 
> What did you mean by "make it work"? I successfully built glibc with GCC 6
> default to PIE and there were no regressions.

did you do it for x86 ?  if you read the nosysenter patch below, it describes in 
detail the problems with x86 and building as PIE.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150528/b761f9a8/attachment.sig>


More information about the Libc-alpha mailing list