[PATCH] x86: Check if needed dynamic relocation section is created

H.J. Lu hjl.tools@gmail.com
Sat Aug 1 03:45:16 GMT 2026


Since elf_link_read_relocs_from_section aborts for bad relocation,
further relocations won't be processed and needed dynamic relocation
section won't be created.  Skip dynamic relocation count if needed
dynamic relocation section hasn't been created.

PR ld/34448
* elfxx-x86.c (_bfd_x86_elf_late_size_sections): Skip dynamic
relocation count if needed dynamic relocation section hasn't been
created.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Check-if-needed-dynamic-relocation-section-is-cr.patch
Type: text/x-patch
Size: 1641 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260801/ccf175dc/attachment.bin>


More information about the Binutils mailing list