1/* List the relocation types for AArch64. -*- C -*- 2 Copyright (C) 2013, 2014 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 31RELOC_TYPE (ABS64, REL|EXEC|DYN) 32RELOC_TYPE (ABS32, REL|EXEC|DYN) 33RELOC_TYPE (COPY, EXEC) 34RELOC_TYPE (GLOB_DAT, EXEC|DYN) 35RELOC_TYPE (JUMP_SLOT, EXEC|DYN) 36RELOC_TYPE (RELATIVE, EXEC|DYN) 37RELOC_TYPE (TLS_DTPMOD64, EXEC|DYN) 38RELOC_TYPE (TLS_DTPREL64, EXEC|DYN) 39RELOC_TYPE (TLS_TPREL64, EXEC|DYN) 40RELOC_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). */ 45RELOC_TYPE (NONE, REL) 46 47RELOC_TYPE (ABS16, REL) 48RELOC_TYPE (PREL64, REL) 49RELOC_TYPE (PREL32, REL) 50RELOC_TYPE (PREL16, REL) 51RELOC_TYPE (MOVW_UABS_G0, REL) 52RELOC_TYPE (MOVW_UABS_G0_NC, REL) 53RELOC_TYPE (MOVW_UABS_G1, REL) 54RELOC_TYPE (MOVW_UABS_G1_NC, REL) 55RELOC_TYPE (MOVW_UABS_G2, REL) 56RELOC_TYPE (MOVW_UABS_G2_NC, REL) 57RELOC_TYPE (MOVW_UABS_G3, REL) 58RELOC_TYPE (MOVW_SABS_G0, REL) 59RELOC_TYPE (MOVW_SABS_G1, REL) 60RELOC_TYPE (MOVW_SABS_G2, REL) 61RELOC_TYPE (LD_PREL_LO19, REL) 62RELOC_TYPE (ADR_PREL_LO21, REL) 63RELOC_TYPE (ADR_PREL_PG_HI21, REL) 64RELOC_TYPE (ADR_PREL_PG_HI21_NC, REL) 65RELOC_TYPE (ADD_ABS_LO12_NC, REL) 66RELOC_TYPE (LDST8_ABS_LO12_NC, REL) 67RELOC_TYPE (LDST16_ABS_LO12_NC, REL) 68RELOC_TYPE (LDST32_ABS_LO12_NC, REL) 69RELOC_TYPE (LDST64_ABS_LO12_NC, REL) 70RELOC_TYPE (LDST128_ABS_LO12_NC, REL) 71RELOC_TYPE (TSTBR14, REL) 72RELOC_TYPE (CONDBR19, REL) 73RELOC_TYPE (JUMP26, REL) 74RELOC_TYPE (CALL26, REL) 75RELOC_TYPE (MOVW_PREL_G0, REL) 76RELOC_TYPE (MOVW_PREL_G0_NC, REL) 77RELOC_TYPE (MOVW_PREL_G1, REL) 78RELOC_TYPE (MOVW_PREL_G1_NC, REL) 79RELOC_TYPE (MOVW_PREL_G2, REL) 80RELOC_TYPE (MOVW_PREL_G2_NC, REL) 81RELOC_TYPE (MOVW_PREL_G3, REL) 82RELOC_TYPE (MOVW_GOTOFF_G0, REL) 83RELOC_TYPE (MOVW_GOTOFF_G0_NC, REL) 84RELOC_TYPE (MOVW_GOTOFF_G1, REL) 85RELOC_TYPE (MOVW_GOTOFF_G1_NC, REL) 86RELOC_TYPE (MOVW_GOTOFF_G2, REL) 87RELOC_TYPE (MOVW_GOTOFF_G2_NC, REL) 88RELOC_TYPE (MOVW_GOTOFF_G3, REL) 89RELOC_TYPE (GOTREL64, REL) 90RELOC_TYPE (GOTREL32, REL) 91RELOC_TYPE (GOT_LD_PREL19, REL) 92RELOC_TYPE (LD64_GOTOFF_LO15, REL) 93RELOC_TYPE (ADR_GOT_PAGE, REL) 94RELOC_TYPE (LD64_GOT_LO12_NC, REL) 95RELOC_TYPE (LD64_GOTPAGE_LO15, REL) 96RELOC_TYPE (TLSGD_ADR_PREL21, REL) 97RELOC_TYPE (TLSGD_ADR_PAGE21, REL) 98RELOC_TYPE (TLSGD_ADD_LO12_NC, REL) 99RELOC_TYPE (TLSGD_MOVW_G1, REL) 100RELOC_TYPE (TLSGD_MOVW_G0_NC, REL) 101RELOC_TYPE (TLSLD_ADR_PREL21, REL) 102RELOC_TYPE (TLSLD_ADR_PAGE21, REL) 103RELOC_TYPE (TLSLD_ADD_LO12_NC, REL) 104RELOC_TYPE (TLSLD_MOVW_G1, REL) 105RELOC_TYPE (TLSLD_MOVW_G0_NC, REL) 106RELOC_TYPE (TLSLD_LD_PREL19, REL) 107RELOC_TYPE (TLSLD_MOVW_DTPREL_G2, REL) 108RELOC_TYPE (TLSLD_MOVW_DTPREL_G1, REL) 109RELOC_TYPE (TLSLD_MOVW_DTPREL_G1_NC, REL) 110RELOC_TYPE (TLSLD_MOVW_DTPREL_G0, REL) 111RELOC_TYPE (TLSLD_MOVW_DTPREL_G0_NC, REL) 112RELOC_TYPE (TLSLD_ADD_DTPREL_HI12, REL) 113RELOC_TYPE (TLSLD_ADD_DTPREL_LO12, REL) 114RELOC_TYPE (TLSLD_ADD_DTPREL_LO12_NC, REL) 115RELOC_TYPE (TLSLD_LDST8_DTPREL_LO12, REL) 116RELOC_TYPE (TLSLD_LDST8_DTPREL_LO12_NC, REL) 117RELOC_TYPE (TLSLD_LDST16_DTPREL_LO12, REL) 118RELOC_TYPE (TLSLD_LDST16_DTPREL_LO12_NC, REL) 119RELOC_TYPE (TLSLD_LDST32_DTPREL_LO12, REL) 120RELOC_TYPE (TLSLD_LDST32_DTPREL_LO12_NC, REL) 121RELOC_TYPE (TLSLD_LDST64_DTPREL_LO12, REL) 122RELOC_TYPE (TLSLD_LDST64_DTPREL_LO12_NC, REL) 123RELOC_TYPE (TLSLD_LDST128_DTPREL_LO12, REL) 124RELOC_TYPE (TLSLD_LDST128_DTPREL_LO12_NC, REL) 125RELOC_TYPE (TLSIE_MOVW_GOTTPREL_G1, REL) 126RELOC_TYPE (TLSIE_MOVW_GOTTPREL_G0_NC, REL) 127RELOC_TYPE (TLSIE_ADR_GOTTPREL_PAGE21, REL) 128RELOC_TYPE (TLSIE_LD64_GOTTPREL_LO12_NC, REL) 129RELOC_TYPE (TLSIE_LD_GOTTPREL_PREL19, REL) 130RELOC_TYPE (TLSLE_MOVW_TPREL_G2, REL) 131RELOC_TYPE (TLSLE_MOVW_TPREL_G1, REL) 132RELOC_TYPE (TLSLE_MOVW_TPREL_G1_NC, REL) 133RELOC_TYPE (TLSLE_MOVW_TPREL_G0, REL) 134RELOC_TYPE (TLSLE_MOVW_TPREL_G0_NC, REL) 135RELOC_TYPE (TLSLE_ADD_TPREL_HI12, REL) 136RELOC_TYPE (TLSLE_ADD_TPREL_LO12, REL) 137RELOC_TYPE (TLSLE_ADD_TPREL_LO12_NC, REL) 138RELOC_TYPE (TLSLE_LDST8_TPREL_LO12, REL) 139RELOC_TYPE (TLSLE_LDST8_TPREL_LO12_NC, REL) 140RELOC_TYPE (TLSLE_LDST16_TPREL_LO12, REL) 141RELOC_TYPE (TLSLE_LDST16_TPREL_LO12_NC, REL) 142RELOC_TYPE (TLSLE_LDST32_TPREL_LO12, REL) 143RELOC_TYPE (TLSLE_LDST32_TPREL_LO12_NC, REL) 144RELOC_TYPE (TLSLE_LDST64_TPREL_LO12, REL) 145RELOC_TYPE (TLSLE_LDST64_TPREL_LO12_NC, REL) 146RELOC_TYPE (TLSLE_LDST128_TPREL_LO12, REL) 147RELOC_TYPE (TLSLE_LDST128_TPREL_LO12_NC, REL) 148RELOC_TYPE (TLSDESC_LD_PREL19, REL) 149RELOC_TYPE (TLSDESC_ADR_PREL21, REL) 150RELOC_TYPE (TLSDESC_ADR_PAGE21, REL) 151RELOC_TYPE (TLSDESC_LD64_LO12, REL) 152RELOC_TYPE (TLSDESC_ADD_LO12, REL) 153RELOC_TYPE (TLSDESC_OFF_G1, REL) 154RELOC_TYPE (TLSDESC_OFF_G0_NC, REL) 155RELOC_TYPE (TLSDESC_LDR, REL) 156RELOC_TYPE (TLSDESC_ADD, REL) 157RELOC_TYPE (TLSDESC_CALL, REL) 158