Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
Contributed by Carl B. Pedersen and Martin Schwidefsky.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of 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.
This program 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 a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
#ifndef _ELF_390_H
#define _ELF_390_H
#define STACK_REG 15 /* Global Stack reg */
#define BACKL_REG 14 /* Global Backlink reg */
#define BASE_REG 13 /* Global Base reg */
#define GOT_REG 12 /* Holds addr of GOT */
#include "elf/reloc-macros.h"
START_RELOC_NUMBERS (elf_s390_reloc_type)
RELOC_NUMBER (R_390_NONE, 0)
RELOC_NUMBER (R_390_8, 1)
RELOC_NUMBER (R_390_12, 2)
RELOC_NUMBER (R_390_16, 3)
RELOC_NUMBER (R_390_32, 4)
RELOC_NUMBER (R_390_PC32, 5)
RELOC_NUMBER (R_390_GOT12, 6)
RELOC_NUMBER (R_390_GOT32, 7)
RELOC_NUMBER (R_390_PLT32, 8)
RELOC_NUMBER (R_390_COPY, 9)
RELOC_NUMBER (R_390_GLOB_DAT, 10)
RELOC_NUMBER (R_390_JMP_SLOT, 11)
RELOC_NUMBER (R_390_RELATIVE, 12)
RELOC_NUMBER (R_390_GOTOFF32, 13)
RELOC_NUMBER (R_390_GOTPC, 14)
RELOC_NUMBER (R_390_GOT16, 15)
RELOC_NUMBER (R_390_PC16, 16)
RELOC_NUMBER (R_390_PC16DBL, 17)
RELOC_NUMBER (R_390_PLT16DBL, 18)
RELOC_NUMBER (R_390_PC32DBL, 19)
RELOC_NUMBER (R_390_PLT32DBL, 20)
RELOC_NUMBER (R_390_GOTPCDBL, 21)
RELOC_NUMBER (R_390_64, 22)
RELOC_NUMBER (R_390_PC64, 23)
RELOC_NUMBER (R_390_GOT64, 24)
RELOC_NUMBER (R_390_PLT64, 25)
RELOC_NUMBER (R_390_GOTENT, 26)
RELOC_NUMBER (R_390_GOTOFF16, 27)
RELOC_NUMBER (R_390_GOTOFF64, 28)
RELOC_NUMBER (R_390_GOTPLT12, 29)
RELOC_NUMBER (R_390_GOTPLT16, 30)
RELOC_NUMBER (R_390_GOTPLT32, 31)
RELOC_NUMBER (R_390_GOTPLT64, 32)
RELOC_NUMBER (R_390_GOTPLTENT, 33)
RELOC_NUMBER (R_390_PLTOFF16, 34)
RELOC_NUMBER (R_390_PLTOFF32, 35)
RELOC_NUMBER (R_390_PLTOFF64, 36)
RELOC_NUMBER (R_390_TLS_LOAD, 37)
RELOC_NUMBER (R_390_TLS_GDCALL, 38)
dynamic TLS code. */
RELOC_NUMBER (R_390_TLS_LDCALL, 39)
dynamic TLS code. */
RELOC_NUMBER (R_390_TLS_GD32, 40)
thread local data. */
RELOC_NUMBER (R_390_TLS_GD64, 41)
thread local data. */
RELOC_NUMBER (R_390_TLS_GOTIE12, 42)
block offset. */
RELOC_NUMBER (R_390_TLS_GOTIE32, 43)
block offset. */
RELOC_NUMBER (R_390_TLS_GOTIE64, 44)
block offset. */
RELOC_NUMBER (R_390_TLS_LDM32, 45)
thread local data in LD code. */
RELOC_NUMBER (R_390_TLS_LDM64, 46)
thread local data in LD code. */
RELOC_NUMBER (R_390_TLS_IE32, 47)
negated static TLS block offset. */
RELOC_NUMBER (R_390_TLS_IE64, 48)
negated static TLS block offset. */
RELOC_NUMBER (R_390_TLS_IEENT, 49)
negated static TLS block offset. */
RELOC_NUMBER (R_390_TLS_LE32, 50)
static TLS block. */
RELOC_NUMBER (R_390_TLS_LE64, 51)
static TLS block. */
RELOC_NUMBER (R_390_TLS_LDO32, 52)
block. */
RELOC_NUMBER (R_390_TLS_LDO64, 53)
block. */
RELOC_NUMBER (R_390_TLS_DTPMOD, 54)
RELOC_NUMBER (R_390_TLS_DTPOFF, 55)
RELOC_NUMBER (R_390_TLS_TPOFF, 56)
block. */
RELOC_NUMBER (R_390_20, 57)
RELOC_NUMBER (R_390_GOT20, 58)
RELOC_NUMBER (R_390_GOTPLT20, 59)
RELOC_NUMBER (R_390_TLS_GOTIE20, 60)
block offset. */
RELOC_NUMBER (R_390_GNU_VTINHERIT, 250)
RELOC_NUMBER (R_390_GNU_VTENTRY, 251)
END_RELOC_NUMBERS (R_390_max)
#endif