blob: 4b60d1023f9edab5896e82e2a7a61c4e633806b6 [file] [log] [blame]
//===- MipsRelocationFunction.h -------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#define DECL_MIPS_APPLY_RELOC_FUNC(Name) \
static MipsRelocationFactory::Result Name(Relocation& pEntry, \
const MCLDInfo& pLDInfo, \
MipsRelocationFactory& pParent);
#define DECL_MIPS_APPLY_RELOC_FUNCS \
DECL_MIPS_APPLY_RELOC_FUNC(none) \
DECL_MIPS_APPLY_RELOC_FUNC(abs32) \
DECL_MIPS_APPLY_RELOC_FUNC(hi16) \
DECL_MIPS_APPLY_RELOC_FUNC(lo16) \
DECL_MIPS_APPLY_RELOC_FUNC(got16) \
DECL_MIPS_APPLY_RELOC_FUNC(call16) \
DECL_MIPS_APPLY_RELOC_FUNC(gprel32)
#define DECL_MIPS_APPLY_RELOC_FUNC_PTRS \
{ &none, 0, "R_MIPS_NONE" }, \
{ &none, 1, "R_MIPS_16" }, \
{ &abs32, 2, "R_MIPS_32" }, \
{ &none, 3, "R_MIPS_REL32" }, \
{ &none, 4, "R_MIPS_26" }, \
{ &hi16, 5, "R_MIPS_HI16" }, \
{ &lo16, 6, "R_MIPS_LO16" }, \
{ &none, 7, "R_MIPS_GPREL16" }, \
{ &none, 8, "R_MIPS_LITERAL" }, \
{ &got16, 9, "R_MIPS_GOT16" }, \
{ &none, 10, "R_MIPS_PC16" }, \
{ &call16, 11, "R_MIPS_CALL16" }, \
{ &gprel32, 12, "R_MIPS_GPREL32" }, \
{ &none, 13, "R_MIPS_UNUSED1" }, \
{ &none, 14, "R_MIPS_UNUSED2" }, \
{ &none, 15, "R_MIPS_UNUSED3" }, \
{ &none, 16, "R_MIPS_SHIFT5" }, \
{ &none, 17, "R_MIPS_SHIFT6" }, \
{ &none, 18, "R_MIPS_64" }, \
{ &none, 19, "R_MIPS_GOT_DISP" }, \
{ &none, 20, "R_MIPS_GOT_PAGE" }, \
{ &none, 21, "R_MIPS_GOT_OFST" }, \
{ &none, 22, "R_MIPS_GOT_HI16" }, \
{ &none, 23, "R_MIPS_GOT_LO16" }, \
{ &none, 24, "R_MIPS_SUB" }, \
{ &none, 25, "R_MIPS_INSERT_A" }, \
{ &none, 26, "R_MIPS_INSERT_B" }, \
{ &none, 27, "R_MIPS_DELETE" }, \
{ &none, 28, "R_MIPS_HIGHER" }, \
{ &none, 29, "R_MIPS_HIGHEST" }, \
{ &none, 30, "R_MIPS_CALL_HI16" }, \
{ &none, 31, "R_MIPS_CALL_LO16" }, \
{ &none, 32, "R_MIPS_SCN_DISP" }, \
{ &none, 33, "R_MIPS_REL16" }, \
{ &none, 34, "R_MIPS_ADD_IMMEDIATE" }, \
{ &none, 35, "R_MIPS_PJUMP" }, \
{ &none, 36, "R_MIPS_RELGOT" }, \
{ &none, 37, "R_MIPS_JALR" }, \
{ &none, 38, "R_MIPS_TLS_DTPMOD32" }, \
{ &none, 39, "R_MIPS_TLS_DTPREL32" }, \
{ &none, 40, "R_MIPS_TLS_DTPMOD64" }, \
{ &none, 41, "R_MIPS_TLS_DTPREL64" }, \
{ &none, 42, "R_MIPS_TLS_GD" }, \
{ &none, 43, "R_MIPS_TLS_LDM" }, \
{ &none, 44, "R_MIPS_TLS_DTPREL_HI16" }, \
{ &none, 45, "R_MIPS_TLS_DTPREL_LO16" }, \
{ &none, 46, "R_MIPS_TLS_GOTTPREL" }, \
{ &none, 47, "R_MIPS_TLS_TPREL32" }, \
{ &none, 48, "R_MIPS_TLS_TPREL64" }, \
{ &none, 49, "R_MIPS_TLS_TPREL_HI16" }, \
{ &none, 50, "R_MIPS_TLS_TPREL_LO16" }, \
{ &none, 51, "R_MIPS_GLOB_DAT" }