]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Keep _GLOBAL_OFFSET_TABLE_ for .eh_frame
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 30 Sep 2025 00:13:56 +0000 (08:13 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 2 Oct 2025 22:08:42 +0000 (06:08 +0800)
commitb6ac5a8a5b82f0ae6a4642c8d7149b325f4cc60a
tree9ede5cac7c3f975c25db741a5c09032cbc99ab78
parent6b21c8b2ecfef5c95142cbc2c32f185cb1c26ab0
x86: Keep _GLOBAL_OFFSET_TABLE_ for .eh_frame

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.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
bfd/elfxx-x86.c