mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Local dynamic TLS model for direct object output. Create the correct TLS MIPS
ELF relocations. Patch by Jack Carter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1474,6 +1474,15 @@ unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
case Mips::fixup_Mips_TPREL_LO:
|
||||
Type = ELF::R_MIPS_TLS_TPREL_LO16;
|
||||
break;
|
||||
case Mips::fixup_Mips_TLSLDM:
|
||||
Type = ELF::R_MIPS_TLS_LDM;
|
||||
break;
|
||||
case Mips::fixup_Mips_DTPREL_HI:
|
||||
Type = ELF::R_MIPS_TLS_DTPREL_HI16;
|
||||
break;
|
||||
case Mips::fixup_Mips_DTPREL_LO:
|
||||
Type = ELF::R_MIPS_TLS_DTPREL_LO16;
|
||||
break;
|
||||
case Mips::fixup_Mips_Branch_PCRel:
|
||||
case Mips::fixup_Mips_PC16:
|
||||
Type = ELF::R_MIPS_PC16;
|
||||
|
Reference in New Issue
Block a user