From: H.J. Lu Date: Wed, 2 Aug 2017 17:27:14 +0000 (-0700) Subject: x86-64: Check PIC instead of SHARED in start.S X-Git-Tag: glibc-2.27~1252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b736bc9b55115e67129e77db4de6cf193054cd2;p=thirdparty%2Fglibc.git x86-64: Check PIC instead of SHARED in start.S Since start.o may be compiled as PIC, we should check PIC instead of SHARED. * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED. --- diff --git a/ChangeLog b/ChangeLog index b3be5a7d19f..06189548348 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-08-02 H.J. Lu + + * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED. + 2017-08-02 H.J. Lu * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead diff --git a/sysdeps/x86_64/start.S b/sysdeps/x86_64/start.S index 62a00eaeaa0..9edd17b60cd 100644 --- a/sysdeps/x86_64/start.S +++ b/sysdeps/x86_64/start.S @@ -96,7 +96,7 @@ ENTRY (_start) which grow downwards). */ pushq %rsp -#ifdef SHARED +#ifdef PIC /* Pass address of our own entry points to .fini and .init. */ mov __libc_csu_fini@GOTPCREL(%rip), %R8_LP mov __libc_csu_init@GOTPCREL(%rip), %RCX_LP