diff mbox

microblaze: Check PIC instead of SHARED in start.S

Message ID 20170929213028.GC2482@gmail.com
State New, archived
Headers show

Commit Message

H.J. Lu Sept. 29, 2017, 9:30 p.m. UTC
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 mbox

Patch

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