This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] microblaze: 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:30:28 -0700
- Subject: [PATCH] microblaze: 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/microblaze/start.S (_start): Check PIC instead of SHARED.
---
sysdeps/microblaze/start.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/microblaze/start.S b/sysdeps/microblaze/start.S
index f94e816ee0..d9b13d0e7a 100644
--- a/sysdeps/microblaze/start.S
+++ b/sysdeps/microblaze/start.S
@@ -58,7 +58,7 @@ _start:
sw r6,r1,r0
addik r7,r1,4
addik r1,r1,-24
-#ifdef SHARED
+#ifdef PIC
/* Setup PIC. */
mfs r20,rpc
addik r20,r20,_GLOBAL_OFFSET_TABLE_+8
--
2.13.6