mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
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.
This commit is contained in:
parent
f649a1b8b0
commit
371b220f62
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user