summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-05-04 23:13:15 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-05-04 23:13:15 +0000
commit729c7a08fbba0217b8e26ca16b265ccb0a3ebae5 (patch)
tree8e1d91688b0e29a0a527734c346f17a97f738023 /llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
parent9130cb85476c656a893fd35537fb5184cd2e5bb4 (diff)
downloadbcm5719-llvm-729c7a08fbba0217b8e26ca16b265ccb0a3ebae5.tar.gz
bcm5719-llvm-729c7a08fbba0217b8e26ca16b265ccb0a3ebae5.zip
MC: support FK_SecRel_4 for Windows on ARM
Add handling for FK_SecRel_4 (4-byte section relative relocations). These are used by the generation of DWARF debug information (the abbrevations use section relative relocations). This will also be used in generation of CodeView line tables. llvm-svn: 207941
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
index aade4328db3..ad73e84bf53 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
@@ -316,6 +316,8 @@ static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
case FK_Data_2:
case FK_Data_4:
return Value;
+ case FK_SecRel_4:
+ return Value;
case ARM::fixup_arm_movt_hi16:
if (!IsPCRel)
Value >>= 16;
@@ -662,6 +664,9 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
case ARM::fixup_t2_movt_hi16:
case ARM::fixup_t2_movw_lo16:
return 4;
+
+ case FK_SecRel_4:
+ return 4;
}
}
OpenPOWER on IntegriCloud