mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
arm: Check PIC instead of SHARED in start.S
Since start.o may be compiled as PIC, we should check PIC instead of SHARED. * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
This commit is contained in:
parent
2f92505d20
commit
f6c5e5bce0
@ -1,3 +1,7 @@
|
||||
2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
|
||||
|
||||
2017-09-29 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
|
||||
|
@ -89,7 +89,7 @@ _start:
|
||||
/* Push rtld_fini */
|
||||
push { a1 }
|
||||
|
||||
#ifdef SHARED
|
||||
#ifdef PIC
|
||||
ldr sl, .L_GOT
|
||||
adr a4, .L_GOT
|
||||
add sl, sl, a4
|
||||
@ -127,7 +127,7 @@ _start:
|
||||
/* should never get here....*/
|
||||
bl abort
|
||||
|
||||
#ifdef SHARED
|
||||
#ifdef PIC
|
||||
.align 2
|
||||
.L_GOT:
|
||||
.word _GLOBAL_OFFSET_TABLE_ - .L_GOT
|
||||
|
Loading…
Reference in New Issue
Block a user