summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
diff options
context:
space:
mode:
authorScott Egerton <Scott.Egerton@imgtec.com>2016-02-15 16:11:51 +0000
committerScott Egerton <Scott.Egerton@imgtec.com>2016-02-15 16:11:51 +0000
commitd1aeb056547a04aad1d95f892566c4b720ad4fd5 (patch)
treee8034c680b15caed7c9909cf8427e8bf61162a17 /llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
parent73f1a406264a0168fac8062822a56887682974fc (diff)
downloadbcm5719-llvm-d1aeb056547a04aad1d95f892566c4b720ad4fd5.tar.gz
bcm5719-llvm-d1aeb056547a04aad1d95f892566c4b720ad4fd5.zip
[mips] Implemented the .hword directive.
Summary: In order to pass the tests, this required marking R_MIPS_16 relocations as needing to point to the symbol and not the section. Reviewers: vkalintiris, dsanders Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D17200 llvm-svn: 260896
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp')
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
index 8967d8414db..b7b07671f6d 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
@@ -412,6 +412,7 @@ bool MipsELFObjectWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
case ELF::R_MICROMIPS_LO16:
return true;
+ case ELF::R_MIPS_16:
case ELF::R_MIPS_32:
if (cast<MCSymbolELF>(Sym).getOther() & ELF::STO_MIPS_MICROMIPS)
return true;
OpenPOWER on IntegriCloud