This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] arm: Check PIC instead of SHARED in start.S
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 29 Sep 2017 14:31:39 -0700
- Subject: [PATCH] arm: Check PIC instead of SHARED in start.S
- Authentication-results: sourceware.org; auth=none
Since start.o may be compiled as PIC, we should check PIC instead of
SHARED.
OK for master?
* sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
---
sysdeps/arm/start.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/arm/start.S b/sysdeps/arm/start.S
index 4973878f05..a5c678b6c5 100644
--- a/sysdeps/arm/start.S
+++ b/sysdeps/arm/start.S
@@ -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
--
2.13.6