This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/22165] [hppa] Text relocations in libc.so


https://sourceware.org/bugzilla/show_bug.cgi?id=22165

--- Comment #1 from dave.anglin at bell dot net ---
On 2017-09-21, at 8:19 AM, jsm28 at gcc dot gnu.org wrote:

> On hppa-linux-gnu, elf/check-textrel fails because of text relocations in
> libc.so (this is one of the few obstructions to getting clean compilation test
> results everywhere with build-many-glibcs.py).
> 
> The problem code appears to be in sysdeps/unix/sysv/linux/hppa/getcontext.S:
> 
>        ldil    L%__getcontext_ret, %r1
>        ldo     R%__getcontext_ret(%r1), %r1
> 
> which produces R_PARISC_DIR21L and R_PARISC_DIR14R text relocations.  I'm not
> familiar with the architecture so don't know how this should be fixed.


I'm testing the attached change.  The above code is not PIC.

Dave
--
John David Anglin       dave.anglin@bell.net

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]