summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Arch/Hexagon.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-08-16 17:01:56 +0000
committerFangrui Song <maskray@google.com>2019-08-16 17:01:56 +0000
commit7ca1e0c825e6242148d14e9f5f727c98a3f3fd11 (patch)
tree0213e5a2f47d6fe46268a18194da9d5cd5b02001 /lld/ELF/Arch/Hexagon.cpp
parent144903310f58756b84144311762be1b5e0a3eec7 (diff)
downloadbcm5719-llvm-7ca1e0c825e6242148d14e9f5f727c98a3f3fd11.tar.gz
bcm5719-llvm-7ca1e0c825e6242148d14e9f5f727c98a3f3fd11.zip
[ELF][Hexagon] Replace R_HEXAGON_GOT with R_GOTPLT
R_GOTPLT is relative to .got.plt since D59594. Since R_HEXAGON_GOT relocations always have 0 r_addend, they can use R_GOTPLT instead. Reviewed By: sidneym Differential Revision: https://reviews.llvm.org/D66274 llvm-svn: 369128
Diffstat (limited to 'lld/ELF/Arch/Hexagon.cpp')
-rw-r--r--lld/ELF/Arch/Hexagon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Arch/Hexagon.cpp b/lld/ELF/Arch/Hexagon.cpp
index f4268c0e406..e805b550a11 100644
--- a/lld/ELF/Arch/Hexagon.cpp
+++ b/lld/ELF/Arch/Hexagon.cpp
@@ -103,7 +103,7 @@ RelExpr Hexagon::getRelExpr(RelType type, const Symbol &s,
case R_HEX_GOT_11_X:
case R_HEX_GOT_16_X:
case R_HEX_GOT_32_6_X:
- return R_HEXAGON_GOT;
+ return R_GOTPLT;
default:
return R_ABS;
}
OpenPOWER on IntegriCloud