diff options
author | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-01-12 00:19:25 +0000 |
---|---|---|
committer | Jason W Kim <jason.w.kim.2009@gmail.com> | 2011-01-12 00:19:25 +0000 |
commit | 86a97f2e4d0cde5e992f52ac287da0de687e0110 (patch) | |
tree | 01858579ad29bbd87f7a52a134b338fe4a5ade44 /lib/MC/ELFObjectWriter.cpp | |
parent | 9081b4b4cf89a161246e037f4817c69de2fcdf82 (diff) | |
download | external_llvm-86a97f2e4d0cde5e992f52ac287da0de687e0110.zip external_llvm-86a97f2e4d0cde5e992f52ac287da0de687e0110.tar.gz external_llvm-86a97f2e4d0cde5e992f52ac287da0de687e0110.tar.bz2 |
1. Support ELF pcrel relocations for movw/movt:
R_ARM_MOVT_PREL and R_ARM_MOVW_PREL_NC.
2. Fix minor bug in ARMAsmPrinter - treat bitfield flag as a bitfield, not an enum.
3. Add support for 3 new elf section types (no-ops)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
-rw-r--r-- | lib/MC/ELFObjectWriter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 757a56a..470c6f5 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1268,6 +1268,9 @@ void ELFObjectWriter::WriteSection(MCAssembler &Asm, case ELF::SHT_NOTE: case ELF::SHT_NULL: case ELF::SHT_ARM_ATTRIBUTES: + case ELF::SHT_INIT_ARRAY: + case ELF::SHT_FINI_ARRAY: + case ELF::SHT_PREINIT_ARRAY: // Nothing to do. break; @@ -1490,6 +1493,13 @@ unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target, default: Type = ELF::R_ARM_CALL; break; } break; + case ARM::fixup_arm_movt_hi16: + case ARM::fixup_arm_movt_hi16_pcrel: + Type = ELF::R_ARM_MOVT_PREL; break; + case ARM::fixup_arm_movw_lo16: + case ARM::fixup_arm_movw_lo16_pcrel: + Type = ELF::R_ARM_MOVW_PREL_NC; break; + } } else { switch ((unsigned)Fixup.getKind()) { |