summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Target.cpp
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2016-11-16 21:01:02 +0000
committerSimon Atanasyan <simon@atanasyan.com>2016-11-16 21:01:02 +0000
commit725dc14bb21da8a01709a6b3370a658d071689dc (patch)
tree0579393b4c3d3ee117edfdfb6dbbb8ebb00aae27 /lld/ELF/Target.cpp
parent397f9d9d05fc9451b274e3126891236cfd72f639 (diff)
downloadbcm5719-llvm-725dc14bb21da8a01709a6b3370a658d071689dc.tar.gz
bcm5719-llvm-725dc14bb21da8a01709a6b3370a658d071689dc.zip
[ELF][MIPS] Add MipsGotSection to handle MIPS GOT
MIPS GOT handling is very different from other targets so it is better to keep the code in the separatre section class MipsGotSection. This patch introduces the new section and moves all MIPS specific code from GotSection to the new class. I did not rename fields and methods in the MipsGotSection class to reduce the diff and plan to do that by the separate commit. Differential revision: https://reviews.llvm.org/D26733 llvm-svn: 287150
Diffstat (limited to 'lld/ELF/Target.cpp')
-rw-r--r--lld/ELF/Target.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 447490ceece..3ad23165534 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -1933,7 +1933,7 @@ RelExpr MipsTargetInfo<ELFT>::getRelExpr(uint32_t Type,
return R_HINT;
case R_MIPS_GPREL16:
case R_MIPS_GPREL32:
- return R_GOTREL;
+ return R_MIPS_GOTREL;
case R_MIPS_26:
return R_PLT;
case R_MIPS_HI16:
OpenPOWER on IntegriCloud