diff options
author | Owen Anderson <resistor@mac.com> | 2011-03-23 21:19:56 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-03-23 21:19:56 +0000 |
commit | 7614783f2dbf1090c3a4888bc70e1eb2baee37c4 (patch) | |
tree | 1694ae8a02b0adfcebc1074370a785fb4ec9cfd2 /lib/MC/MachObjectWriter.cpp | |
parent | bd47a4a307a54dab25956430442cf4ac103e4158 (diff) | |
download | external_llvm-7614783f2dbf1090c3a4888bc70e1eb2baee37c4.zip external_llvm-7614783f2dbf1090c3a4888bc70e1eb2baee37c4.tar.gz external_llvm-7614783f2dbf1090c3a4888bc70e1eb2baee37c4.tar.bz2 |
Fix a bug introduced by my patch yesterday: BL is a 4-byte instructions like BLX, rather than a 2-byte instruction like B.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | lib/MC/MachObjectWriter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index f2e91c2..105506a 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -949,14 +949,13 @@ public: // Handle Thumb branches. case ARM::fixup_arm_thumb_br: - case ARM::fixup_arm_thumb_bl: RelocType = unsigned(macho::RIT_ARM_ThumbBranch22Bit); Log2Size = llvm::Log2_32(2); return true; - + + case ARM::fixup_arm_thumb_bl: case ARM::fixup_arm_thumb_blx: RelocType = unsigned(macho::RIT_ARM_ThumbBranch22Bit); - // Report as 'long', even though that is not quite accurate. Log2Size = llvm::Log2_32(4); return true; |