This is the mail archive of the libc-alpha@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]

[PATCH] [PR libc/18801] PIE binary with STT_GNU_IFUNC symbol and TEXTREL segfaults on x86_64


Details here:
https://sourceware.org/bugzilla/show_bug.cgi?id=18801

Thanks to Paul Pluzhnikov for identifying the problem and suggesting the fix.

PR 18801
* elf/dl-reloc.c (_dl_relocate_object):  Preserve the
original permissions when protecting the segment for writing it.
* sysdeps/x86_64/Makefile (ifunc-pie-txtrel-test): New test.
* sysdeps/x86_64/tst-pie-ifunc-txtrel.S: New file.

Patch attached.  Please review.

Thanks
Sri

Attachment: glibc_pie_ifunc_patch.txt
Description: Text document


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