[PATCH] x86: Improve relocation error reporting
H.J. Lu
hjl.tools@gmail.com
Tue Aug 4 03:36:43 GMT 2026
For bfd_reloc_outofrange relocation error, instead of
ld: pr34448-bug_4.o(.debug_addr+0x7f000008): reloc against
`.text.get_tls': error 4
linker now reports:
ld: pr34448-bug_4.o(.debug_addr+0x7f000008): relocation `R_X86_64_64'
against `.text.get_tls' is out of section range
PR ld/34448
* elf32-i386.c (elf_i386_relocate_section): Call
_bfd_x86_elf_link_report_relocation_error for relocation error.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
* elfxx-x86.c (_bfd_x86_elf_link_report_relocation_error): New.
* elfxx-x86.h (_bfd_x86_elf_link_report_relocation_error): New.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Improve-relocation-error-reporting.patch
Type: text/x-patch
Size: 4039 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260804/2faf1558/attachment-0001.bin>
More information about the Binutils
mailing list