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:
H.J. Lu 2017-09-29 16:20:26 -07:00
parent 2f92505d20
commit f6c5e5bce0
2 changed files with 6 additions and 2 deletions

View File

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

View File

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