[PATCH] x86: Keep _GLOBAL_OFFSET_TABLE_ for .eh_frame

H.J. Lu hjl.tools@gmail.com
Tue Sep 30 02:36:00 GMT 2025


Since x86 .eh_frame section may reference _GLOBAL_OFFSET_TABLE_, keep
_GLOBAL_OFFSET_TABLE_ if there is dynamic section and the output
.eh_frame section is non-empty.

PR ld/33499
* elfxx-x86.c (_bfd_x86_elf_late_size_sections): Keep
_GLOBAL_OFFSET_TABLE_ if there is dynamic section and the
output .eh_frame section is non-empty.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Keep-_GLOBAL_OFFSET_TABLE_-for-.eh_frame.patch
Type: text/x-patch
Size: 1660 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250930/0917da51/attachment.bin>


More information about the Binutils mailing list