[PATCH] x86-64: Return SHN_COMMON on non-ELF input
H.J. Lu
hjl.tools@gmail.com
Thu Jul 30 07:53:08 GMT 2026
elf_x86_64_common_definition segfaults on PE/x86-64 input. Return
SHN_COMMON on non-ELF input. Linker now gets assertion fail at
bfd/coffgen.c:575, instead of getting segfault.
PR ld/34449
* elf64-x86-64.c (elf_x86_64_common_definition): Return
SHN_COMMON on non-ELF input.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-64-Return-SHN_COMMON-on-non-ELF-input.patch
Type: text/x-patch
Size: 1161 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260730/3a31fddd/attachment.bin>
More information about the Binutils
mailing list