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.
This commit is contained in:
H.J. Lu 2017-08-02 10:27:14 -07:00
parent dfc93c41ee
commit 5b736bc9b5
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead

View File

@ -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