Home | History | Annotate | Download | only in backends
      1 /* List the relocation types for AArch64.  -*- C -*-
      2    Copyright (C) 2013, 2014, 2015 Red Hat, Inc.
      3    This file is part of elfutils.
      4 
      5    This file is free software; you can redistribute it and/or modify
      6    it under the terms of either
      7 
      8      * the GNU Lesser General Public License as published by the Free
      9        Software Foundation; either version 3 of the License, or (at
     10        your option) any later version
     11 
     12    or
     13 
     14      * the GNU General Public License as published by the Free
     15        Software Foundation; either version 2 of the License, or (at
     16        your option) any later version
     17 
     18    or both in parallel, as here.
     19 
     20    elfutils is distributed in the hope that it will be useful, but
     21    WITHOUT ANY WARRANTY; without even the implied warranty of
     22    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     23    General Public License for more details.
     24 
     25    You should have received copies of the GNU General Public License and
     26    the GNU Lesser General Public License along with this program.  If
     27    not, see <http://www.gnu.org/licenses/>.  */
     28 
     29 /*	    NAME,		REL|EXEC|DYN	*/
     30 
     31 RELOC_TYPE (ABS64,		REL|EXEC|DYN)
     32 RELOC_TYPE (ABS32,		REL|EXEC|DYN)
     33 RELOC_TYPE (COPY,		EXEC|DYN)
     34 RELOC_TYPE (GLOB_DAT,		EXEC|DYN)
     35 RELOC_TYPE (JUMP_SLOT,		EXEC|DYN)
     36 RELOC_TYPE (RELATIVE,		EXEC|DYN)
     37 RELOC_TYPE (TLS_DTPMOD,		EXEC|DYN)
     38 RELOC_TYPE (TLS_DTPREL,		EXEC|DYN)
     39 RELOC_TYPE (TLS_TPREL,		EXEC|DYN)
     40 RELOC_TYPE (TLSDESC,		EXEC|DYN)
     41 
     42 /* R_AARCH64_NONE records that the section containing the place to be
     43    relocated depends on the section defining the symbol mentioned in
     44    the relocation directive[.]  (ARM IHI 0056B).  */
     45 RELOC_TYPE (NONE,		REL)
     46 
     47 RELOC_TYPE (ABS16,		REL)
     48 RELOC_TYPE (PREL64,		REL)
     49 RELOC_TYPE (PREL32,		REL)
     50 RELOC_TYPE (PREL16,		REL)
     51 RELOC_TYPE (MOVW_UABS_G0,	REL)
     52 RELOC_TYPE (MOVW_UABS_G0_NC,	REL)
     53 RELOC_TYPE (MOVW_UABS_G1,	REL)
     54 RELOC_TYPE (MOVW_UABS_G1_NC,	REL)
     55 RELOC_TYPE (MOVW_UABS_G2,	REL)
     56 RELOC_TYPE (MOVW_UABS_G2_NC,	REL)
     57 RELOC_TYPE (MOVW_UABS_G3,	REL)
     58 RELOC_TYPE (MOVW_SABS_G0,	REL)
     59 RELOC_TYPE (MOVW_SABS_G1,	REL)
     60 RELOC_TYPE (MOVW_SABS_G2,	REL)
     61 RELOC_TYPE (LD_PREL_LO19,	REL)
     62 RELOC_TYPE (ADR_PREL_LO21,	REL)
     63 RELOC_TYPE (ADR_PREL_PG_HI21,	REL)
     64 RELOC_TYPE (ADR_PREL_PG_HI21_NC, REL)
     65 RELOC_TYPE (ADD_ABS_LO12_NC,	REL)
     66 RELOC_TYPE (LDST8_ABS_LO12_NC,	REL)
     67 RELOC_TYPE (LDST16_ABS_LO12_NC,	REL)
     68 RELOC_TYPE (LDST32_ABS_LO12_NC,	REL)
     69 RELOC_TYPE (LDST64_ABS_LO12_NC,	REL)
     70 RELOC_TYPE (LDST128_ABS_LO12_NC, REL)
     71 RELOC_TYPE (TSTBR14,		REL)
     72 RELOC_TYPE (CONDBR19,		REL)
     73 RELOC_TYPE (JUMP26,		REL)
     74 RELOC_TYPE (CALL26,		REL)
     75 RELOC_TYPE (MOVW_PREL_G0,	REL)
     76 RELOC_TYPE (MOVW_PREL_G0_NC,	REL)
     77 RELOC_TYPE (MOVW_PREL_G1,	REL)
     78 RELOC_TYPE (MOVW_PREL_G1_NC,	REL)
     79 RELOC_TYPE (MOVW_PREL_G2,	REL)
     80 RELOC_TYPE (MOVW_PREL_G2_NC,	REL)
     81 RELOC_TYPE (MOVW_PREL_G3,	REL)
     82 RELOC_TYPE (MOVW_GOTOFF_G0,	REL)
     83 RELOC_TYPE (MOVW_GOTOFF_G0_NC,	REL)
     84 RELOC_TYPE (MOVW_GOTOFF_G1,	REL)
     85 RELOC_TYPE (MOVW_GOTOFF_G1_NC,	REL)
     86 RELOC_TYPE (MOVW_GOTOFF_G2,	REL)
     87 RELOC_TYPE (MOVW_GOTOFF_G2_NC,	REL)
     88 RELOC_TYPE (MOVW_GOTOFF_G3,	REL)
     89 RELOC_TYPE (GOTREL64,		REL)
     90 RELOC_TYPE (GOTREL32,		REL)
     91 RELOC_TYPE (GOT_LD_PREL19,	REL)
     92 RELOC_TYPE (LD64_GOTOFF_LO15,	REL)
     93 RELOC_TYPE (ADR_GOT_PAGE,	REL)
     94 RELOC_TYPE (LD64_GOT_LO12_NC,	REL)
     95 RELOC_TYPE (LD64_GOTPAGE_LO15,	REL)
     96 RELOC_TYPE (TLSGD_ADR_PREL21,	REL)
     97 RELOC_TYPE (TLSGD_ADR_PAGE21,	REL)
     98 RELOC_TYPE (TLSGD_ADD_LO12_NC,	REL)
     99 RELOC_TYPE (TLSGD_MOVW_G1,	REL)
    100 RELOC_TYPE (TLSGD_MOVW_G0_NC,	REL)
    101 RELOC_TYPE (TLSLD_ADR_PREL21,	REL)
    102 RELOC_TYPE (TLSLD_ADR_PAGE21,	REL)
    103 RELOC_TYPE (TLSLD_ADD_LO12_NC,	REL)
    104 RELOC_TYPE (TLSLD_MOVW_G1,	REL)
    105 RELOC_TYPE (TLSLD_MOVW_G0_NC,	REL)
    106 RELOC_TYPE (TLSLD_LD_PREL19,	REL)
    107 RELOC_TYPE (TLSLD_MOVW_DTPREL_G2,	REL)
    108 RELOC_TYPE (TLSLD_MOVW_DTPREL_G1,	REL)
    109 RELOC_TYPE (TLSLD_MOVW_DTPREL_G1_NC,	REL)
    110 RELOC_TYPE (TLSLD_MOVW_DTPREL_G0,	REL)
    111 RELOC_TYPE (TLSLD_MOVW_DTPREL_G0_NC,	REL)
    112 RELOC_TYPE (TLSLD_ADD_DTPREL_HI12,	REL)
    113 RELOC_TYPE (TLSLD_ADD_DTPREL_LO12,	REL)
    114 RELOC_TYPE (TLSLD_ADD_DTPREL_LO12_NC,	REL)
    115 RELOC_TYPE (TLSLD_LDST8_DTPREL_LO12,	REL)
    116 RELOC_TYPE (TLSLD_LDST8_DTPREL_LO12_NC,	REL)
    117 RELOC_TYPE (TLSLD_LDST16_DTPREL_LO12,	REL)
    118 RELOC_TYPE (TLSLD_LDST16_DTPREL_LO12_NC, REL)
    119 RELOC_TYPE (TLSLD_LDST32_DTPREL_LO12,	REL)
    120 RELOC_TYPE (TLSLD_LDST32_DTPREL_LO12_NC, REL)
    121 RELOC_TYPE (TLSLD_LDST64_DTPREL_LO12,	REL)
    122 RELOC_TYPE (TLSLD_LDST64_DTPREL_LO12_NC, REL)
    123 RELOC_TYPE (TLSLD_LDST128_DTPREL_LO12,	REL)
    124 RELOC_TYPE (TLSLD_LDST128_DTPREL_LO12_NC, REL)
    125 RELOC_TYPE (TLSIE_MOVW_GOTTPREL_G1,	REL)
    126 RELOC_TYPE (TLSIE_MOVW_GOTTPREL_G0_NC,	REL)
    127 RELOC_TYPE (TLSIE_ADR_GOTTPREL_PAGE21,	REL)
    128 RELOC_TYPE (TLSIE_LD64_GOTTPREL_LO12_NC, REL)
    129 RELOC_TYPE (TLSIE_LD_GOTTPREL_PREL19,	REL)
    130 RELOC_TYPE (TLSLE_MOVW_TPREL_G2,	REL)
    131 RELOC_TYPE (TLSLE_MOVW_TPREL_G1,	REL)
    132 RELOC_TYPE (TLSLE_MOVW_TPREL_G1_NC,	REL)
    133 RELOC_TYPE (TLSLE_MOVW_TPREL_G0,	REL)
    134 RELOC_TYPE (TLSLE_MOVW_TPREL_G0_NC,	REL)
    135 RELOC_TYPE (TLSLE_ADD_TPREL_HI12,	REL)
    136 RELOC_TYPE (TLSLE_ADD_TPREL_LO12,	REL)
    137 RELOC_TYPE (TLSLE_ADD_TPREL_LO12_NC,	REL)
    138 RELOC_TYPE (TLSLE_LDST8_TPREL_LO12,	REL)
    139 RELOC_TYPE (TLSLE_LDST8_TPREL_LO12_NC,	REL)
    140 RELOC_TYPE (TLSLE_LDST16_TPREL_LO12,	REL)
    141 RELOC_TYPE (TLSLE_LDST16_TPREL_LO12_NC,	REL)
    142 RELOC_TYPE (TLSLE_LDST32_TPREL_LO12,	REL)
    143 RELOC_TYPE (TLSLE_LDST32_TPREL_LO12_NC,	REL)
    144 RELOC_TYPE (TLSLE_LDST64_TPREL_LO12,	REL)
    145 RELOC_TYPE (TLSLE_LDST64_TPREL_LO12_NC,	REL)
    146 RELOC_TYPE (TLSLE_LDST128_TPREL_LO12,	REL)
    147 RELOC_TYPE (TLSLE_LDST128_TPREL_LO12_NC, REL)
    148 RELOC_TYPE (TLSDESC_LD_PREL19,		REL)
    149 RELOC_TYPE (TLSDESC_ADR_PREL21,		REL)
    150 RELOC_TYPE (TLSDESC_ADR_PAGE21,		REL)
    151 RELOC_TYPE (TLSDESC_LD64_LO12,		REL)
    152 RELOC_TYPE (TLSDESC_ADD_LO12,		REL)
    153 RELOC_TYPE (TLSDESC_OFF_G1,		REL)
    154 RELOC_TYPE (TLSDESC_OFF_G0_NC,		REL)
    155 RELOC_TYPE (TLSDESC_LDR,		REL)
    156 RELOC_TYPE (TLSDESC_ADD,		REL)
    157 RELOC_TYPE (TLSDESC_CALL,		REL)
    158