aboutsummaryrefslogtreecommitdiff
path: root/elfcpp
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-06-28 10:17:08 +0930
committerAlan Modra <amodra@gmail.com>2019-06-28 10:17:08 +0930
commitc432bbbaaa072438e6303b819bdcb4289c2b22e0 (patch)
tree15cfc4379068d45412637895fceeecdddf2c973a /elfcpp
parent60d53d7f032ad7af09760afbaf01b2ec413f198a (diff)
downloadgdb-c432bbbaaa072438e6303b819bdcb4289c2b22e0.zip
gdb-c432bbbaaa072438e6303b819bdcb4289c2b22e0.tar.gz
gdb-c432bbbaaa072438e6303b819bdcb4289c2b22e0.tar.bz2
[GOLD] R_PPC64_REL16_HIGH relocs
These relocs have been around for quite a while. It's past time gold supported them. elfcpp/ * powerpc.h (R_PPC64_REL16_HIGH, R_PPC64_REL16_HIGHA), (R_PPC64_REL16_HIGHER, R_PPC64_REL16_HIGHERA), (R_PPC64_REL16_HIGHEST, R_PPC64_REL16_HIGHESTA): Define. gold/ * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Handle REL16_HIGH* relocs. (Target_powerpc::Scan::local): Likewise. (Target_powerpc::Scan::global): Likewise. (Target_powerpc::Relocate::relocate): Likewise.
Diffstat (limited to 'elfcpp')
-rw-r--r--elfcpp/ChangeLog6
-rw-r--r--elfcpp/powerpc.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index fbb045b..0565d78 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,9 @@
+2019-06-28 Alan Modra <amodra@gmail.com>
+
+ * powerpc.h (R_PPC64_REL16_HIGH, R_PPC64_REL16_HIGHA),
+ (R_PPC64_REL16_HIGHER, R_PPC64_REL16_HIGHERA),
+ (R_PPC64_REL16_HIGHEST, R_PPC64_REL16_HIGHESTA): Define.
+
2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
* arm.h (Tag_MVE_arch): Define new enum value.
diff --git a/elfcpp/powerpc.h b/elfcpp/powerpc.h
index cb0e05e..4008f55 100644
--- a/elfcpp/powerpc.h
+++ b/elfcpp/powerpc.h
@@ -200,6 +200,13 @@ enum
R_PPC_VLE_SDAREL_HA16A = 231,
R_PPC_VLE_SDAREL_HA16D = 232,
+ R_PPC64_REL16_HIGH = 240,
+ R_PPC64_REL16_HIGHA = 241,
+ R_PPC64_REL16_HIGHER = 242,
+ R_PPC64_REL16_HIGHERA = 243,
+ R_PPC64_REL16_HIGHEST = 244,
+ R_PPC64_REL16_HIGHESTA = 245,
+
R_POWERPC_REL16DX_HA = 246,
R_PPC64_JMP_IREL = 247,
R_POWERPC_IRELATIVE = 248,