PING^N: [PATCH] Add --enable-static-pie to build static PIE [BZ #19574]

Maciej W. Rozycki macro@mips.com
Thu Nov 30 22:37:00 GMT 2017


On Thu, 30 Nov 2017, Carlos O'Donell wrote:

> > FAIL: glibcs-mips64el-linux-gnu-n32 build
> > FAIL: glibcs-mips64el-linux-gnu-n32-nan2008 build
> > FAIL: glibcs-mips64el-linux-gnu-n32-nan2008-soft build
> > FAIL: glibcs-mips64el-linux-gnu-n32-soft build
> > FAIL: glibcs-mips64-linux-gnu-n32 build
> > FAIL: glibcs-mips64-linux-gnu-n32-nan2008 build
> > FAIL: glibcs-mips64-linux-gnu-n32-nan2008-soft build
> > FAIL: glibcs-mips64-linux-gnu-n32-soft build
> > FAIL: glibcs-mipsel-linux-gnu build
> > FAIL: glibcs-mipsel-linux-gnu-nan2008 build
> > FAIL: glibcs-mipsel-linux-gnu-nan2008-soft build
> > FAIL: glibcs-mipsel-linux-gnu-soft build
> > FAIL: glibcs-mips-linux-gnu build
> > FAIL: glibcs-mips-linux-gnu-nan2008 build
> > FAIL: glibcs-mips-linux-gnu-nan2008-soft build
> > FAIL: glibcs-mips-linux-gnu-soft build
> > 
> > elf/sln is failed to link due to:
> > 
> > crt1.o: relocation R_MIPS_HI16 against `_gp' can not be used when making a shared object; recompile with -fPIC
> > 
> > This is caused by linker bug and/or non-PIC code in crt1.o.

 Or likely a bug in the `make' recipe used to link `sln' -- Scrt1.o has to 
be chosen instead for PIE links and the GCC driver gets it right, however 
we use `-nostartfiles' and link in the bits by hand.

  Maciej



More information about the Libc-alpha mailing list