1/* List the relocation types for ppc64. -*- C -*- 2 Copyright (C) 2005, 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 31RELOC_TYPE (NONE, 0) 32RELOC_TYPE (ADDR32, REL|EXEC|DYN) 33RELOC_TYPE (ADDR24, REL) 34RELOC_TYPE (ADDR16, REL) /* note 1 */ 35RELOC_TYPE (ADDR16_LO, REL) /* note 1 */ 36RELOC_TYPE (ADDR16_HI, REL) /* note 1 */ 37RELOC_TYPE (ADDR16_HA, REL) /* note 1 */ 38RELOC_TYPE (ADDR14, REL) /* note 1 */ 39RELOC_TYPE (ADDR14_BRTAKEN, REL) /* note 1 */ 40RELOC_TYPE (ADDR14_BRNTAKEN, REL) /* note 1 */ 41RELOC_TYPE (REL24, REL) 42RELOC_TYPE (REL14, REL) 43RELOC_TYPE (REL14_BRTAKEN, REL) 44RELOC_TYPE (REL14_BRNTAKEN, REL) 45RELOC_TYPE (GOT16, REL) 46RELOC_TYPE (GOT16_LO, REL) 47RELOC_TYPE (GOT16_HI, REL) 48RELOC_TYPE (GOT16_HA, REL) 49RELOC_TYPE (COPY, EXEC|DYN) 50RELOC_TYPE (GLOB_DAT, EXEC|DYN) 51RELOC_TYPE (JMP_SLOT, EXEC|DYN) 52RELOC_TYPE (RELATIVE, EXEC|DYN) 53RELOC_TYPE (UADDR32, REL|EXEC|DYN) 54RELOC_TYPE (UADDR16, REL) 55RELOC_TYPE (REL32, REL|EXEC|DYN) 56RELOC_TYPE (PLT32, REL) 57RELOC_TYPE (PLTREL32, REL) 58RELOC_TYPE (PLT16_LO, REL) 59RELOC_TYPE (PLT16_HI, REL) 60RELOC_TYPE (PLT16_HA, REL) 61RELOC_TYPE (SECTOFF, REL) 62RELOC_TYPE (SECTOFF_LO, REL) 63RELOC_TYPE (SECTOFF_HI, REL) 64RELOC_TYPE (SECTOFF_HA, REL) 65RELOC_TYPE (ADDR30, REL) /* note 1 */ 66RELOC_TYPE (ADDR64, REL|EXEC|DYN) 67RELOC_TYPE (ADDR16_HIGHER, REL) /* note 1 */ 68RELOC_TYPE (ADDR16_HIGHERA, REL) /* note 1 */ 69RELOC_TYPE (ADDR16_HIGHEST, REL) /* note 1 */ 70RELOC_TYPE (ADDR16_HIGHESTA, REL) /* note 1 */ 71RELOC_TYPE (UADDR64, REL|EXEC|DYN) 72RELOC_TYPE (REL64, REL|EXEC|DYN) 73RELOC_TYPE (PLT64, REL) 74RELOC_TYPE (PLTREL64, REL) 75RELOC_TYPE (TOC16, REL) 76RELOC_TYPE (TOC16_LO, REL) 77RELOC_TYPE (TOC16_HI, REL) 78RELOC_TYPE (TOC16_HA, REL) 79RELOC_TYPE (TOC, REL) 80RELOC_TYPE (PLTGOT16, REL) 81RELOC_TYPE (PLTGOT16_LO, REL) 82RELOC_TYPE (PLTGOT16_HI, REL) 83RELOC_TYPE (PLTGOT16_HA, REL) 84RELOC_TYPE (ADDR16_DS, REL) /* note 1 */ 85RELOC_TYPE (ADDR16_LO_DS, REL) /* note 1 */ 86RELOC_TYPE (GOT16_DS, REL) 87RELOC_TYPE (GOT16_LO_DS, REL) 88RELOC_TYPE (PLT16_LO_DS, REL) 89RELOC_TYPE (SECTOFF_DS, REL) 90RELOC_TYPE (SECTOFF_LO_DS, REL) 91RELOC_TYPE (TOC16_DS, REL) 92RELOC_TYPE (TOC16_LO_DS, REL) 93RELOC_TYPE (PLTGOT16_DS, REL) 94RELOC_TYPE (PLTGOT16_LO_DS, REL) 95RELOC_TYPE (TLS, REL) 96RELOC_TYPE (DTPMOD64, REL|EXEC|DYN) /* note 3 */ 97RELOC_TYPE (TPREL16, REL) /* note 2 */ 98RELOC_TYPE (TPREL16_LO, REL) /* note 2 */ 99RELOC_TYPE (TPREL16_HI, REL) /* note 2 */ 100RELOC_TYPE (TPREL16_HA, REL) /* note 2 */ 101RELOC_TYPE (TPREL64, REL|EXEC|DYN) /* note 3 */ 102RELOC_TYPE (DTPREL16, REL) 103RELOC_TYPE (DTPREL16_LO, REL) 104RELOC_TYPE (DTPREL16_HI, REL) 105RELOC_TYPE (DTPREL16_HA, REL) 106RELOC_TYPE (DTPREL64, REL|EXEC|DYN) /* note 3 */ 107RELOC_TYPE (GOT_TLSGD16, REL) 108RELOC_TYPE (GOT_TLSGD16_LO, REL) 109RELOC_TYPE (GOT_TLSGD16_HI, REL) 110RELOC_TYPE (GOT_TLSGD16_HA, REL) 111RELOC_TYPE (GOT_TLSLD16, REL) 112RELOC_TYPE (GOT_TLSLD16_LO, REL) 113RELOC_TYPE (GOT_TLSLD16_HI, REL) 114RELOC_TYPE (GOT_TLSLD16_HA, REL) 115RELOC_TYPE (GOT_TPREL16_DS, REL) 116RELOC_TYPE (GOT_TPREL16_LO_DS, REL) 117RELOC_TYPE (GOT_TPREL16_HI, REL) 118RELOC_TYPE (GOT_TPREL16_HA, REL) 119RELOC_TYPE (GOT_DTPREL16_DS, REL) 120RELOC_TYPE (GOT_DTPREL16_LO_DS, REL) 121RELOC_TYPE (GOT_DTPREL16_HI, REL) 122RELOC_TYPE (GOT_DTPREL16_HA, REL) 123RELOC_TYPE (TPREL16_DS, REL) /* note 2 */ 124RELOC_TYPE (TPREL16_LO_DS, REL) /* note 2 */ 125RELOC_TYPE (TPREL16_HIGHER, REL) /* note 2 */ 126RELOC_TYPE (TPREL16_HIGHERA, REL) /* note 2 */ 127RELOC_TYPE (TPREL16_HIGHEST, REL) /* note 2 */ 128RELOC_TYPE (TPREL16_HIGHESTA, REL) /* note 2 */ 129RELOC_TYPE (DTPREL16_DS, REL) 130RELOC_TYPE (DTPREL16_LO_DS, REL) 131RELOC_TYPE (DTPREL16_HIGHER, REL) 132RELOC_TYPE (DTPREL16_HIGHERA, REL) 133RELOC_TYPE (DTPREL16_HIGHEST, REL) 134RELOC_TYPE (DTPREL16_HIGHESTA, REL) 135RELOC_TYPE (TLSGD, REL) 136RELOC_TYPE (TLSLD, REL) 137RELOC_TYPE (TOCSAVE, REL) 138RELOC_TYPE (ADDR16_HIGH, REL) 139RELOC_TYPE (ADDR16_HIGHA, REL) 140RELOC_TYPE (TPREL16_HIGH, REL) 141RELOC_TYPE (TPREL16_HIGHA, REL) 142RELOC_TYPE (DTPREL16_HIGH, REL) 143RELOC_TYPE (DTPREL16_HIGHA, REL) 144RELOC_TYPE (JMP_IREL, REL) 145RELOC_TYPE (IRELATIVE, REL) 146RELOC_TYPE (REL16, REL) 147RELOC_TYPE (REL16_LO, REL) 148RELOC_TYPE (REL16_HI, REL) 149RELOC_TYPE (REL16_HA, REL) 150 151/* Notes from Alan Modra: 152 153 1) These can appear in DYN and EXEC with improper assembly, but they 154 aren't really kosher. 155 156 2) These can appear in DYN with improper assembly (or silly gcc 157 attributes, I think). Again, not kosher. 158 159 3) These are legal in REL for PowerOpen compatible assembler syntax, 160 ie. TOC managed by compiler. 161*/ 162