[2.45 PATCH] x86: Copy non_got_ref_without_indirect_extern_access
H.J. Lu
hjl.tools@gmail.com
Sat Sep 13 15:57:51 GMT 2025
Hi Nick,
I am backporting this patch to 2.45 branch.
--
H.J.
---
Copy non_got_ref_without_indirect_extern_access when copying indirect
symbol for weak alias so that _bfd_x86_elf_adjust_dynamic_symbol will
properly handle GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS.
bfd/
PR ld/33409
* elfxx-x86.c (_bfd_x86_elf_copy_indirect_symbol): Copy
non_got_ref_without_indirect_extern_access.
ld/
PR ld/33409
* testsuite/config/default.exp (DIRECT_EXTERN_ACCESS_CFLAGS): New.
(NO_DIRECT_EXTERN_ACCESS_CFLAGS): Likewise.
* testsuite/ld-elf/shared.exp: Run PR ld/33409 tests.
* testsuite/ld-elf/pr33409a.c: New file.
* testsuite/ld-elf/pr33409b.c: Likewise.
* testsuite/ld-elf/pr33409c.c: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 59ada1f6d61bfc7b119f0ae6edcc23dc569e70ad)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250913/0e00e6ab/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Copy-non_got_ref_without_indirect_extern_access.patch
Type: text/x-patch
Size: 5130 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250913/0e00e6ab/attachment-0001.bin>
More information about the Binutils
mailing list