aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorMephi <mephi42@gmail.com>2018-06-18 12:56:44 +0100
committerNick Clifton <nickc@redhat.com>2018-06-18 12:56:44 +0100
commited1299fe460812ad4bbdc2192d0c0cbeba3d6b66 (patch)
tree17c4f6b7e37957989ec1caf0b230c4a44d8a0e42 /bfd/bfd-in2.h
parent02895270ec7243f46ea3e84dc385515533dc0139 (diff)
downloadgdb-ed1299fe460812ad4bbdc2192d0c0cbeba3d6b66.zip
gdb-ed1299fe460812ad4bbdc2192d0c0cbeba3d6b66.tar.gz
gdb-ed1299fe460812ad4bbdc2192d0c0cbeba3d6b66.tar.bz2
Add support for the TLV relocation generated by LLVM for x86_64 MACH-O targets.
PR 23297 * mach-o-x86-64.c (x86_64_howto_table): Add entry for BFD_RELOC_MACH_O_X86_64_RELOC_TLV. (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc. (bfd_mach_o_x86_64_swap_reloc_out): Likewise. * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 5ceb935..f53dbb5 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -5755,6 +5755,9 @@ the linker could optimize the movq to a leaq if possible. */
/* Same as BFD_RELOC_32_PCREL but with an implicit -4 addend. */
BFD_RELOC_MACH_O_X86_64_PCREL32_4,
+/* Used when referencing a TLV entry. */
+ BFD_RELOC_MACH_O_X86_64_TLV,
+
/* Addend for PAGE or PAGEOFF. */
BFD_RELOC_MACH_O_ARM64_ADDEND,