This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PING^N: [PATCH] Add --enable-static-pie to build static PIE [BZ #19574]
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