mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
hppa: fix loading of global pointer in _start [BZ #20277]
The patched change fixes a regression for executables compiled with the -p option and linked with gcrt1.o. The executables crash on startup. This regression was introduced in 2.22 and was noticed in the gcc testsuite.
This commit is contained in:
parent
13efa86ece
commit
9765ffa710
@ -1,3 +1,9 @@
|
||||
2016-06-30 John David Anglin <danglin@gcc.gnu.org>
|
||||
|
||||
[BZ #20277]
|
||||
* sysdeps/hppa/start.S (_start): Correct loading of global pointer
|
||||
when SHARED is defined.
|
||||
|
||||
2016-06-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
|
||||
|
@ -131,8 +131,10 @@ _start:
|
||||
stw %sp, -60(%sp)
|
||||
|
||||
#ifdef SHARED
|
||||
/* load global */
|
||||
addil LT'.Lp__global, %r19
|
||||
ldw RT'.Lp__global(%r1), %dp
|
||||
ldw 0(%dp), %dp
|
||||
#else
|
||||
/* load global */
|
||||
ldil L%$global$, %dp
|
||||
|
Loading…
Reference in New Issue
Block a user