From f49fe902baaeff0cc73e86330ed0468d48203046 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 17 Nov 2013 10:30:28 -0800 Subject: 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::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::Scan::local): Likewise. (Target_x86_64::Scan::global): Likewise. (Target_x86_64::Relocate::relocate): Likewise. (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc): Likewise. (Target_x86_64::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. --- elfcpp/ChangeLog | 5 +++++ elfcpp/x86_64.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'elfcpp') diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index 4d0a5037f76..2399da69ec6 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-17 H.J. Lu + + * x86_64.h (R_X86_64_PC32_BND): New. + (R_X86_64_PLT32_BND): Likewise. + 2013-10-30 Alan Modra * powerpc.h (EF_PPC64_ABI): New enum constant. diff --git a/elfcpp/x86_64.h b/elfcpp/x86_64.h index a53beac947c..79fa13fcf53 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 -- cgit v1.2.3-65-gdbad