]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: Use x86_64_elf_howto_table for standard relocations
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Feb 2025 00:38:57 +0000 (08:38 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 10 Feb 2025 00:44:02 +0000 (08:44 +0800)
commit64da7fa527463f505bd085cd29cf57d8d5b6e8ef
tree5df02adb7584c5178db54f101f86ee9b75d45de4
parentc17d862be9ec64eaa2319e21955bd62cf0e55d3b
x86-64: Use x86_64_elf_howto_table for standard relocations

For standard relocations, use x86_64_elf_howto_table, instead of calling
elf_x86_64_rtype_to_howto.

* elf64-x86-64.c (elf_x86_64_tls_transition): Use
x86_64_elf_howto_table, instead of elf_x86_64_rtype_to_howto.
(elf_x86_64_convert_load_reloc): Use x86_64_elf_howto_table,
instead of elf_x86_64_rtype_to_howto, for R_X86_64_PC32.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
bfd/elf64-x86-64.c