m68k: Check PIC instead of SHARED in start.S

Message ID 20170929213050.GD2482@gmail.com
State Committed
Commit 4027a4fda011c4431bdc3a063963de0b6fd6c07e
Headers

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/m68k/start.S (_start): Check PIC instead of SHARED.
---
 sysdeps/m68k/start.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Andreas Schwab Oct. 20, 2017, 8:19 a.m. UTC | #1
On Sep 29 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:

> 	* sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.

Ok.

Andreas.
  

Patch

diff --git a/sysdeps/m68k/start.S b/sysdeps/m68k/start.S
index 71ba3b90e3..9f5d58831e 100644
--- a/sysdeps/m68k/start.S
+++ b/sysdeps/m68k/start.S
@@ -76,7 +76,7 @@  _start:
 	pea (%a1)		/* Push address of the shared library
 				   termination function.  */
 
-#ifdef SHARED
+#ifdef PIC
 	/* Load PIC register.  */
 	LOAD_GOT (%a5)