]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sparc: Check PIC instead of SHARED in start.S [BZ #22638]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Feb 2018 13:46:38 +0000 (05:46 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 5 Feb 2018 13:46:56 +0000 (05:46 -0800)
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.

ChangeLog
sysdeps/sparc/sparc32/start.S
sysdeps/sparc/sparc64/start.S

index 2e5c7265fcb31de81ef49a2d987fc90b5e7de557..7c161f3251978192aee9fd0a7da1e51e08694118 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #22638]
+       * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
+       SHARED.
+
 2018-02-05  Andreas Schwab  <schwab@suse.de>
 
        [BZ #22761]
index 1db7327fc61894f85ed13b063f9105354f1bc133..46ba8b6afadc52ffb2ae5cad31996906a22bd3a8 100644 (file)
@@ -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
index e1865f10cb217ecbd91b6a763690f5e324bdb718..75ff5093dc0a8f43d3ab4598a6a18cc50ad94fc1 100644 (file)
@@ -42,7 +42,7 @@
        .global _start
        .type _start,#function
 _start:
-#ifdef SHARED
+#ifdef PIC
        SETUP_PIC_REG(l7)
 #endif
 
@@ -58,7 +58,7 @@ _start:
        add     %sp, STACK_BIAS+23*8, %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