mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
1. ARM/MC/ELF: A few more ELF relocs for .o
2. Fixed EmitLocalCommonSymbol for ELF (Yes, they exist. :) Test added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1565,8 +1565,12 @@ unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
Type = ELF::R_ARM_GOT_BREL; break;
|
||||
case MCSymbolRefExpr::VK_ARM_TLSGD:
|
||||
Type = ELF::R_ARM_TLS_GD32; break;
|
||||
case MCSymbolRefExpr::VK_ARM_TPOFF:
|
||||
Type = ELF::R_ARM_TLS_LE32; break;
|
||||
case MCSymbolRefExpr::VK_ARM_GOTTPOFF:
|
||||
Type = ELF::R_ARM_TLS_IE32; break;
|
||||
case MCSymbolRefExpr::VK_None:
|
||||
Type = ELF::R_ARM_ABS32; break;
|
||||
case MCSymbolRefExpr::VK_ARM_GOTOFF:
|
||||
Type = ELF::R_ARM_GOTOFF32; break;
|
||||
} break;
|
||||
@ -1579,6 +1583,8 @@ unsigned ARMELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
case ARM::fixup_arm_thumb_br:
|
||||
assert(0 && "Unimplemented"); break;
|
||||
case ARM::fixup_arm_branch:
|
||||
// FIXME: Differentiate between R_ARM_CALL and
|
||||
// R_ARM_JUMP24 (latter used for conditional jumps)
|
||||
Type = ELF::R_ARM_CALL; break;
|
||||
case ARM::fixup_arm_movt_hi16:
|
||||
Type = ELF::R_ARM_MOVT_ABS; break;
|
||||
|
Reference in New Issue
Block a user