summaryrefslogtreecommitdiffstats
path: root/elfcpp/x86_64.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-11-17 10:30:28 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-11-18 09:59:23 -0800
commit0659b3872bcd5cf5fd7ee8754290bd6b12d7324d (patch)
tree95f3a265dcd12f35be1f58f7f559fdd6ccd15fbe /elfcpp/x86_64.h
parentb3eb037d17c6082ba4803f8f034f34360f16fa16 (diff)
downloadppe42-binutils-0659b3872bcd5cf5fd7ee8754290bd6b12d7324d.tar.gz
ppe42-binutils-0659b3872bcd5cf5fd7ee8754290bd6b12d7324d.zip
Add R_X86_64_PC32_BND/R_X86_64_PLT32_BND suppor to gold
elfcpp/ * x86_64.h (R_X86_64_PC32_BND): New. (R_X86_64_PLT32_BND): Likewise. gold/ * x86_64.cc (Target_x86_64<size>::Scan::get_reference_flags): Handle R_X86_64_PC32_BND and R_X86_64_PLT32_BND just like R_X86_64_PC32 and R_X86_64_PLT32, respectively. (Target_x86_64<size>::Scan::local): Likewise. (Target_x86_64<size>::Scan::global): Likewise. (Target_x86_64<size>::Relocate::relocate): Likewise. (Target_x86_64<size>::Relocatable_size_for_reloc::get_size_for_reloc): Likewise. (Target_x86_64<size>::Scan::check_non_pic(): Handle R_X86_64_PC32_BND. * testsuite/Makefile.am (check_PROGRAMS): Add exception_x86_64_bnd_test. (exception_x86_64_bnd_test_SOURCES): New macro. (exception_x86_64_bnd_test_DEPENDENCIES): Likewise. (exception_x86_64_bnd_test_LDFLAGS): Likewise. (exception_x86_64_bnd_test_LDADD): Likewise. (exception_x86_64_bnd_1.o): New rule. (exception_x86_64_bnd_2.o): Likewise. * testsuite/Makefile.in: Regenerated.
Diffstat (limited to 'elfcpp/x86_64.h')
-rw-r--r--elfcpp/x86_64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elfcpp/x86_64.h b/elfcpp/x86_64.h
index a53beac947..79fa13fcf5 100644
--- a/elfcpp/x86_64.h
+++ b/elfcpp/x86_64.h
@@ -92,6 +92,8 @@ enum
R_X86_64_TLSDESC = 36, // 2 by 64-bit TLS descriptor
R_X86_64_IRELATIVE = 37, // Adjust indirectly by program base
R_X86_64_RELATIVE64 = 38, // 64-bit adjust by program base
+ R_X86_64_PC32_BND = 39, // PC relative 32 bit signed with BND prefix
+ R_X86_64_PLT32_BND = 40, // 32 bit PLT address with BND prefix
// GNU vtable garbage collection extensions.
R_X86_64_GNU_VTINHERIT = 250,
R_X86_64_GNU_VTENTRY = 251
OpenPOWER on IntegriCloud