mirror of git://sourceware.org/git/glibc.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.
This commit is contained in:
parent
dfc93c41ee
commit
5b736bc9b5
|
|
@ -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>
|
2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
|
* sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ ENTRY (_start)
|
||||||
which grow downwards). */
|
which grow downwards). */
|
||||||
pushq %rsp
|
pushq %rsp
|
||||||
|
|
||||||
#ifdef SHARED
|
#ifdef PIC
|
||||||
/* Pass address of our own entry points to .fini and .init. */
|
/* Pass address of our own entry points to .fini and .init. */
|
||||||
mov __libc_csu_fini@GOTPCREL(%rip), %R8_LP
|
mov __libc_csu_fini@GOTPCREL(%rip), %R8_LP
|
||||||
mov __libc_csu_init@GOTPCREL(%rip), %RCX_LP
|
mov __libc_csu_init@GOTPCREL(%rip), %RCX_LP
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue