mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Fix hppa text relocations in libc.so
[BZ libc/22165] * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC code to load address of __getcontext_ret when generating PIC code.
This commit is contained in:
parent
2000067a4b
commit
388784cfdd
@ -1,3 +1,9 @@
|
||||
2017-09-30 John David Anglin <danglin@gcc.gnu.org>
|
||||
|
||||
[BZ libc/22165]
|
||||
* sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
|
||||
code to load address of __getcontext_ret when generating PIC code.
|
||||
|
||||
2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf/Makefile (tests-static-internal): Add
|
||||
|
@ -145,8 +145,13 @@ ENTRY(__getcontext)
|
||||
stw %r4, oR24(%r26)
|
||||
stw %r5, oR25(%r26)
|
||||
stw %r6, oR26(%r26)
|
||||
#ifdef PIC
|
||||
addil LT%__getcontext_ret, %r19
|
||||
ldw RT%__getcontext_ret(%r1), %r1
|
||||
#else
|
||||
ldil L%__getcontext_ret, %r1
|
||||
ldo R%__getcontext_ret(%r1), %r1
|
||||
#endif
|
||||
stw %r1, oR2(%r26)
|
||||
|
||||
/* Save the current signal mask. */
|
||||
|
Loading…
Reference in New Issue
Block a user