summaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2013-01-08 19:01:28 +0000
committerJack Carter <jcarter@mips.com>2013-01-08 19:01:28 +0000
commit4a50e53e53816076584c957741cb430899271726 (patch)
treeb4fbac9175c2cd0781f3ba8a66be9acf8fb94f6d /lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
parent26853a5d1c39c3e4ddab3dc9f3d1f97815d974d2 (diff)
downloadexternal_llvm-4a50e53e53816076584c957741cb430899271726.zip
external_llvm-4a50e53e53816076584c957741cb430899271726.tar.gz
external_llvm-4a50e53e53816076584c957741cb430899271726.tar.bz2
This patch produces the correct addend value for
an R_MIPS_GPREL16 relocation. Contributer: Jack Carter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp')
-rw-r--r--lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
index 26df966..0b13607 100644
--- a/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
+++ b/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
@@ -37,6 +37,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
case FK_Data_4:
case FK_Data_8:
case Mips::fixup_Mips_LO16:
+ case Mips::fixup_Mips_GPREL16:
case Mips::fixup_Mips_GPOFF_HI:
case Mips::fixup_Mips_GPOFF_LO:
case Mips::fixup_Mips_GOT_PAGE: