/* List the relocation types for LoongArch.  -*- C -*-
   This file is part of elfutils.

   This file is free software; you can redistribute it and/or modify
   it under the terms of either

     * the GNU Lesser General Public License as published by the Free
       Software Foundation; either version 3 of the License, or (at
       your option) any later version

   or

     * the GNU General Public License as published by the Free
       Software Foundation; either version 2 of the License, or (at
       your option) any later version

   or both in parallel, as here.

   elfutils is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received copies of the GNU General Public License and
   the GNU Lesser General Public License along with this program.  If
   not, see <http://www.gnu.org/licenses/>.  */

/*	    NAME,			REL|EXEC|DYN	*/

RELOC_TYPE (NONE,			EXEC|DYN)
RELOC_TYPE (32,				REL|EXEC|DYN)
RELOC_TYPE (64,				REL|EXEC|DYN)
RELOC_TYPE (RELATIVE,			EXEC|DYN)
RELOC_TYPE (COPY,			EXEC|DYN)
RELOC_TYPE (JUMP_SLOT,			EXEC|DYN)
RELOC_TYPE (TLS_DTPMOD32,		EXEC|DYN)
RELOC_TYPE (TLS_DTPMOD64,		EXEC|DYN)
RELOC_TYPE (TLS_DTPREL32,		EXEC|DYN)
RELOC_TYPE (TLS_DTPREL64,		EXEC|DYN)
RELOC_TYPE (TLS_TPREL32,		EXEC|DYN)
RELOC_TYPE (TLS_TPREL64,		EXEC|DYN)
RELOC_TYPE (IRELATIVE,			EXEC|DYN)
RELOC_TYPE (MARK_LA,			REL)
RELOC_TYPE (MARK_PCREL,			REL)
RELOC_TYPE (SOP_PUSH_PCREL,		REL)
RELOC_TYPE (SOP_PUSH_ABSOLUTE,		REL)
RELOC_TYPE (SOP_PUSH_DUP,		REL)
RELOC_TYPE (SOP_PUSH_GPREL,		REL)
RELOC_TYPE (SOP_PUSH_TLS_TPREL,		REL)
RELOC_TYPE (SOP_PUSH_TLS_GOT,		REL)
RELOC_TYPE (SOP_PUSH_TLS_GD,		REL)
RELOC_TYPE (SOP_PUSH_PLT_PCREL,		REL)
RELOC_TYPE (SOP_ASSERT,			REL)
RELOC_TYPE (SOP_NOT,			REL)
RELOC_TYPE (SOP_SUB,			REL)
RELOC_TYPE (SOP_SL,			REL)
RELOC_TYPE (SOP_SR,			REL)
RELOC_TYPE (SOP_ADD,			REL)
RELOC_TYPE (SOP_AND,			REL)
RELOC_TYPE (SOP_IF_ELSE,		REL)
RELOC_TYPE (SOP_POP_32_S_10_5,		REL)
RELOC_TYPE (SOP_POP_32_U_10_12,		REL)
RELOC_TYPE (SOP_POP_32_S_10_12,		REL)
RELOC_TYPE (SOP_POP_32_S_10_16,		REL)
RELOC_TYPE (SOP_POP_32_S_10_16_S2,	REL)
RELOC_TYPE (SOP_POP_32_S_5_20,		REL)
RELOC_TYPE (SOP_POP_32_S_0_5_10_16_S2,	REL)
RELOC_TYPE (SOP_POP_32_S_0_10_10_16_S2,	REL)
RELOC_TYPE (SOP_POP_32_U,		REL)
RELOC_TYPE (ADD8,			REL)
RELOC_TYPE (ADD16,			REL)
RELOC_TYPE (ADD24,			REL)
RELOC_TYPE (ADD32,			REL)
RELOC_TYPE (ADD64,			REL)
RELOC_TYPE (SUB8,			REL)
RELOC_TYPE (SUB16,			REL)
RELOC_TYPE (SUB24,			REL)
RELOC_TYPE (SUB32,			REL)
RELOC_TYPE (SUB64,			REL)
RELOC_TYPE (GNU_VTINHERIT,		REL)
RELOC_TYPE (GNU_VTENTRY,		REL)

/* reserved 59-63 */

RELOC_TYPE (B16,			REL)
RELOC_TYPE (B21,			REL)
RELOC_TYPE (B26,			REL)
RELOC_TYPE (ABS_HI20,			REL)
RELOC_TYPE (ABS_LO12,			REL)
RELOC_TYPE (ABS64_LO20,			REL)
RELOC_TYPE (ABS64_HI12,			REL)
RELOC_TYPE (PCALA_HI20,			REL)
RELOC_TYPE (PCALA_LO12,			REL)
RELOC_TYPE (PCALA64_LO20,		REL)
RELOC_TYPE (PCALA64_HI12,		REL)
RELOC_TYPE (GOT_PC_HI20,		REL)
RELOC_TYPE (GOT_PC_LO12,		REL)
RELOC_TYPE (GOT64_PC_LO20,		REL)
RELOC_TYPE (GOT64_PC_HI12,		REL)
RELOC_TYPE (GOT_HI20,			REL)
RELOC_TYPE (GOT_LO12,			REL)
RELOC_TYPE (GOT64_LO20,			REL)
RELOC_TYPE (GOT64_HI12,			REL)
RELOC_TYPE (TLS_LE_HI20,		REL)
RELOC_TYPE (TLS_LE_LO12,		REL)
RELOC_TYPE (TLS_LE64_LO20,		REL)
RELOC_TYPE (TLS_LE64_HI12,		REL)
RELOC_TYPE (TLS_IE_PC_HI20,		REL)
RELOC_TYPE (TLS_IE_PC_LO12,		REL)
RELOC_TYPE (TLS_IE64_PC_LO20,		REL)
RELOC_TYPE (TLS_IE64_PC_HI12,		REL)
RELOC_TYPE (TLS_IE_HI20,		REL)
RELOC_TYPE (TLS_IE_LO12,		REL)
RELOC_TYPE (TLS_IE64_LO20,		REL)
RELOC_TYPE (TLS_IE64_HI12,		REL)
RELOC_TYPE (TLS_LD_PC_HI20,		REL)
RELOC_TYPE (TLS_LD_HI20,		REL)
RELOC_TYPE (TLS_GD_PC_HI20,		REL)
RELOC_TYPE (TLS_GD_HI20,		REL)
RELOC_TYPE (32_PCREL,			REL)
RELOC_TYPE (RELAX,			REL)
RELOC_TYPE (DELETE,			REL)
RELOC_TYPE (ALIGN,			REL)
RELOC_TYPE (PCREL20_S2,			REL)
RELOC_TYPE (CFA,			REL)
RELOC_TYPE (ADD6,			REL)
RELOC_TYPE (SUB6,			REL)
RELOC_TYPE (ADD_ULEB128,		REL)
RELOC_TYPE (SUB_ULEB128,		REL)
RELOC_TYPE (64_PCREL,			REL)
RELOC_TYPE (CALL36,			REL)
RELOC_TYPE (TLS_DESC_PC_HI20,		REL)
RELOC_TYPE (TLS_DESC_PC_LO12,		REL)
RELOC_TYPE (TLS_DESC64_PC_LO20,		REL)
RELOC_TYPE (TLS_DESC64_PC_HI12,		REL)
RELOC_TYPE (TLS_DESC_HI20,		REL)
RELOC_TYPE (TLS_DESC_LO12,		REL)
RELOC_TYPE (TLS_DESC64_LO20,		REL)
RELOC_TYPE (TLS_DESC64_HI12,		REL)
RELOC_TYPE (TLS_DESC_LD,		REL)
RELOC_TYPE (TLS_DESC_CALL,		REL)
RELOC_TYPE (TLS_LE_HI20_R,		REL)
RELOC_TYPE (TLS_LE_ADD_R,		REL)
RELOC_TYPE (TLS_LE_LO12_R,		REL)
RELOC_TYPE (TLS_LD_PCREL20_S2,		REL)
RELOC_TYPE (TLS_GD_PCREL20_S2,		REL)
RELOC_TYPE (TLS_DESC_PCREL20_S2,	REL)
