about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc32
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-02-05 05:46:38 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-02-05 05:46:56 -0800
commit371b220f6208968d5f4bffc9f66bf885930a42a5 (patch)
tree3da93f3880af72aa1a347ae21f48868fbb296075 /sysdeps/sparc/sparc32
parentf649a1b8b01ffc46a0e0ee5cca0623deccc94bf7 (diff)
downloadglibc-371b220f6208968d5f4bffc9f66bf885930a42a5.tar.gz
glibc-371b220f6208968d5f4bffc9f66bf885930a42a5.tar.xz
glibc-371b220f6208968d5f4bffc9f66bf885930a42a5.zip
sparc: Check PIC instead of SHARED in start.S [BZ #22638]
Since start.o may be compiled as PIC, we should check PIC instead of
SHARED.

	[BZ #22638]
	* sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
	SHARED.
	* sysdeps/sparc/sparc64/start.S (_start): Likewise.
Diffstat (limited to 'sysdeps/sparc/sparc32')
-rw-r--r--sysdeps/sparc/sparc32/start.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/sparc/sparc32/start.S b/sysdeps/sparc/sparc32/start.S
index 1db7327fc6..46ba8b6afa 100644
--- a/sysdeps/sparc/sparc32/start.S
+++ b/sysdeps/sparc/sparc32/start.S
@@ -42,7 +42,7 @@
 	.global _start
 	.type _start,#function
 _start:
-#ifdef SHARED
+#ifdef PIC
 	SETUP_PIC_REG(l7)
 #endif
 
@@ -57,7 +57,7 @@ _start:
 	add	%sp, 23*4, %o2
 
   /* Load the addresses of the user entry points.  */
-#ifndef SHARED
+#ifndef PIC
 	sethi	%hi(main), %o0
 	sethi	%hi(__libc_csu_init), %o3
 	sethi	%hi(__libc_csu_fini), %o4