summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitc3dd91c4d7bed3ad9c07d3c5a8bf49906fdec3e1 (patch)
treea4380eef33083cfaed97887cb0a8d28ce669ab1a /llvm/lib
parent9e28cd3fad1e4c26842cc7e4c062353790a7b7cd (diff)
downloadbcm5719-llvm-c3dd91c4d7bed3ad9c07d3c5a8bf49906fdec3e1.tar.gz
bcm5719-llvm-c3dd91c4d7bed3ad9c07d3c5a8bf49906fdec3e1.zip
This patch produces the correct addend value for
an R_MIPS_GPREL16 relocation. Contributer: Jack Carter llvm-svn: 171882
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
index 26df966d773..0b13607a572 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud