[PATCH] x86: Improve relocation error reporting
H.J. Lu
hjl.tools@gmail.com
Wed Aug 5 21:55:53 GMT 2026
On Tue, Aug 4, 2026 at 11:36 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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.
>
>
This is the patch I am checking in.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Improve-relocation-error-reporting.patch
Type: text/x-patch
Size: 3926 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260806/45892ffc/attachment-0001.bin>
More information about the Binutils
mailing list