diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-04 23:13:15 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-04 23:13:15 +0000 |
commit | 729c7a08fbba0217b8e26ca16b265ccb0a3ebae5 (patch) | |
tree | 8e1d91688b0e29a0a527734c346f17a97f738023 /llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | |
parent | 9130cb85476c656a893fd35537fb5184cd2e5bb4 (diff) | |
download | bcm5719-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.cpp | 5 |
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; } } |