about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-20 03:34:38 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-20 03:34:53 -0700
commit4027a4fda011c4431bdc3a063963de0b6fd6c07e (patch)
treeb1c0406dbdfd2a10da2ca08ff1ced5bed5fdac33
parent2f9314b4121b0200559693d6cfc8f61c692c2857 (diff)
downloadglibc-4027a4fda011c4431bdc3a063963de0b6fd6c07e.tar.gz
glibc-4027a4fda011c4431bdc3a063963de0b6fd6c07e.tar.xz
glibc-4027a4fda011c4431bdc3a063963de0b6fd6c07e.zip
m68k: Check PIC instead of SHARED in start.S
Since start.o may be compiled as PIC, we should check PIC instead of
SHARED.

	* sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/m68k/start.S2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d8194dc4c3..138eea5ffd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
+
 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
 
 	[BZ #13605]
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)