This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Thu, 30 Nov 2017, H.J. Lu wrote:

> This patch fixes mips build with --enable-static-pie:
> 
> diff --git a/sysdeps/mips/Makefile b/sysdeps/mips/Makefile
> index fd891ddf09..7ac6fa5031 100644
> --- a/sysdeps/mips/Makefile
> +++ b/sysdeps/mips/Makefile
> @@ -23,6 +23,9 @@ CPPFLAGS-crtn.S += $(pic-ccflag)
>  endif
> 
>  ASFLAGS-.os += $(pic-ccflag)
> +# libc.a and libc_p.a must be compiled with -fPIE/-fpie for static PIE.
> +ASFLAGS-.o += $(pie-default)
> +ASFLAGS-.op += $(pie-default)
> 
>  ifeq ($(subdir),elf)
>  ifneq ($(o32-fpabi),)
> 
> Can you try native mips build with --enable-static-pie using hjl/pie/static
> branch?

 I'm not sure if I'm set up for a native glibc build right now, I haven't 
done one for a while now.  I could try a cross build right away, however I 
am too loaded with other stuff to commit to do testing for you at the 
moment.

 Perhaps Joseph would be kind enough, as the MIPS port maintainer -- 
Joseph?

  Maciej


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]