mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Mips direct object xgot support
This patch provides support for the MIPS relocations:
*) R_MIPS_GOT_HI16
*) R_MIPS_GOT_LO16
*) R_MIPS_CALL_HI16
*) R_MIPS_CALL_LO16
These are used for large GOT instruction sequences.
Contributer: Jack Carter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -179,6 +179,18 @@ unsigned MipsELFObjectWriter::GetRelocType(const MCValue &Target,
|
||||
case Mips::fixup_Mips_HIGHEST:
|
||||
Type = ELF::R_MIPS_HIGHEST;
|
||||
break;
|
||||
case Mips::fixup_Mips_GOT_HI16:
|
||||
Type = ELF::R_MIPS_GOT_HI16;
|
||||
break;
|
||||
case Mips::fixup_Mips_GOT_LO16:
|
||||
Type = ELF::R_MIPS_GOT_LO16;
|
||||
break;
|
||||
case Mips::fixup_Mips_CALL_HI16:
|
||||
Type = ELF::R_MIPS_CALL_HI16;
|
||||
break;
|
||||
case Mips::fixup_Mips_CALL_LO16:
|
||||
Type = ELF::R_MIPS_CALL_LO16;
|
||||
break;
|
||||
}
|
||||
return Type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user