[PATCH] microblaze: Check PIC instead of SHARED in start.S
H.J. Lu
hjl.tools@gmail.com
Fri Sep 29 21:30:00 GMT 2017
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
More information about the Libc-alpha
mailing list