[PATCH] elf: Avoid relocating non-allocated code sections

H.J. Lu hjl.tools@gmail.com
Thu Jul 30 00:33:19 GMT 2026


Since non-allocated code sections can't be properly relocated, issue an
error on such input.

PR ld/34444
* elflink.c (elf_link_input_bfd): Issue an error on a non-allocated
code section.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-elf-Avoid-relocating-non-allocated-code-sections.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260730/a0454287/attachment.bin>


More information about the Binutils mailing list