blob: dc963a0efb9dafe6ae9cf4fd4165e98763ef1ba6 [file] [log] [blame]
Roland McGrathcd60ea82005-11-16 01:57:40 +00001/* List the relocation types for ppc. -*- C -*-
2 Copyright (C) 2005 Red Hat, Inc.
Mark Wielaardde2ed972012-06-05 17:15:16 +02003 This file is part of elfutils.
Roland McGrathcd60ea82005-11-16 01:57:40 +00004
Mark Wielaardde2ed972012-06-05 17:15:16 +02005 This file is free software; you can redistribute it and/or modify
6 it under the terms of either
Roland McGrathcd60ea82005-11-16 01:57:40 +00007
Mark Wielaardde2ed972012-06-05 17:15:16 +02008 * 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
Ulrich Drepper361df7d2006-04-04 21:38:57 +000021 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
Mark Wielaardde2ed972012-06-05 17:15:16 +020025 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/>. */
Roland McGrathcd60ea82005-11-16 01:57:40 +000028
Roland McGrath6e8d1832005-11-17 22:47:38 +000029/* NAME, REL|EXEC|DYN */
Roland McGrathcd60ea82005-11-16 01:57:40 +000030
Roland McGrath6e8d1832005-11-17 22:47:38 +000031RELOC_TYPE (NONE, 0)
32RELOC_TYPE (ADDR32, REL|EXEC|DYN)
33RELOC_TYPE (ADDR24, REL)
34RELOC_TYPE (ADDR16, REL|EXEC|DYN) /* note 1 */
35RELOC_TYPE (ADDR16_LO, REL|EXEC|DYN) /* note 1 */
36RELOC_TYPE (ADDR16_HI, REL|EXEC|DYN) /* note 1 */
37RELOC_TYPE (ADDR16_HA, REL|EXEC|DYN) /* note 1 */
38RELOC_TYPE (ADDR14, REL|EXEC|DYN) /* note 1 */
39RELOC_TYPE (ADDR14_BRTAKEN, REL|EXEC|DYN) /* note 1 */
40RELOC_TYPE (ADDR14_BRNTAKEN, REL|EXEC|DYN) /* note 1 */
41RELOC_TYPE (REL24, REL|EXEC|DYN) /* note 1 */
42RELOC_TYPE (REL14, REL|EXEC|DYN) /* note 1 */
43RELOC_TYPE (REL14_BRTAKEN, REL|EXEC|DYN) /* note 1 */
44RELOC_TYPE (REL14_BRNTAKEN, REL|EXEC|DYN) /* note 1 */
45RELOC_TYPE (GOT16, REL)
46RELOC_TYPE (GOT16_LO, REL)
47RELOC_TYPE (GOT16_HI, REL)
48RELOC_TYPE (GOT16_HA, REL)
49RELOC_TYPE (PLTREL24, REL)
50RELOC_TYPE (COPY, EXEC)
51RELOC_TYPE (GLOB_DAT, EXEC|DYN)
52RELOC_TYPE (JMP_SLOT, EXEC|DYN)
53RELOC_TYPE (RELATIVE, EXEC|DYN)
54RELOC_TYPE (LOCAL24PC, REL)
55RELOC_TYPE (UADDR32, REL|EXEC|DYN)
56RELOC_TYPE (UADDR16, REL) /* note 2 */
57RELOC_TYPE (REL32, REL|EXEC|DYN)
58RELOC_TYPE (PLT32, REL)
59RELOC_TYPE (PLTREL32, REL)
60RELOC_TYPE (PLT16_LO, REL)
61RELOC_TYPE (PLT16_HI, REL)
62RELOC_TYPE (PLT16_HA, REL)
63RELOC_TYPE (SDAREL16, REL)
64RELOC_TYPE (SECTOFF, REL)
65RELOC_TYPE (SECTOFF_LO, REL)
66RELOC_TYPE (SECTOFF_HI, REL)
67RELOC_TYPE (SECTOFF_HA, REL)
68RELOC_TYPE (TLS, REL)
69RELOC_TYPE (DTPMOD32, EXEC|DYN) /* note 2 */
70RELOC_TYPE (TPREL16, REL) /* note 2 */
71RELOC_TYPE (TPREL16_LO, REL) /* note 2 */
72RELOC_TYPE (TPREL16_HI, REL) /* note 2 */
73RELOC_TYPE (TPREL16_HA, REL) /* note 2 */
74RELOC_TYPE (TPREL32, EXEC|DYN) /* note 2 */
75RELOC_TYPE (DTPREL16, REL)
76RELOC_TYPE (DTPREL16_LO, REL)
77RELOC_TYPE (DTPREL16_HI, REL)
78RELOC_TYPE (DTPREL16_HA, REL)
79RELOC_TYPE (DTPREL32, EXEC|DYN) /* note 2 */
80RELOC_TYPE (GOT_TLSGD16, REL)
81RELOC_TYPE (GOT_TLSGD16_LO, REL)
82RELOC_TYPE (GOT_TLSGD16_HI, REL)
83RELOC_TYPE (GOT_TLSGD16_HA, REL)
84RELOC_TYPE (GOT_TLSLD16, REL)
85RELOC_TYPE (GOT_TLSLD16_LO, REL)
86RELOC_TYPE (GOT_TLSLD16_HI, REL)
87RELOC_TYPE (GOT_TLSLD16_HA, REL)
88RELOC_TYPE (GOT_TPREL16, REL)
89RELOC_TYPE (GOT_TPREL16_LO, REL)
90RELOC_TYPE (GOT_TPREL16_HI, REL)
91RELOC_TYPE (GOT_TPREL16_HA, REL)
92RELOC_TYPE (GOT_DTPREL16, REL)
93RELOC_TYPE (GOT_DTPREL16_LO, REL)
94RELOC_TYPE (GOT_DTPREL16_HI, REL)
95RELOC_TYPE (GOT_DTPREL16_HA, REL)
96RELOC_TYPE (EMB_NADDR32, REL) /* note 3 */
97RELOC_TYPE (EMB_NADDR16, REL) /* note 3 */
98RELOC_TYPE (EMB_NADDR16_LO, REL) /* note 3 */
99RELOC_TYPE (EMB_NADDR16_HI, REL) /* note 3 */
100RELOC_TYPE (EMB_NADDR16_HA, REL) /* note 3 */
101RELOC_TYPE (EMB_SDAI16, REL) /* note 3 */
102RELOC_TYPE (EMB_SDA2I16, REL) /* note 3 */
103RELOC_TYPE (EMB_SDA2REL, REL) /* note 3 */
104RELOC_TYPE (EMB_SDA21, REL) /* note 3 */
105RELOC_TYPE (EMB_MRKREF, REL) /* note 3 */
106RELOC_TYPE (EMB_RELSEC16, REL) /* note 3 */
107RELOC_TYPE (EMB_RELST_LO, REL) /* note 3 */
108RELOC_TYPE (EMB_RELST_HI, REL) /* note 3 */
109RELOC_TYPE (EMB_RELST_HA, REL) /* note 3 */
110RELOC_TYPE (EMB_BIT_FLD, REL) /* note 3 */
111RELOC_TYPE (EMB_RELSDA, REL) /* note 3 */
112RELOC_TYPE (DIAB_SDA21_LO, REL) /* note 3 */
113RELOC_TYPE (DIAB_SDA21_HI, REL) /* note 3 */
114RELOC_TYPE (DIAB_SDA21_HA, REL) /* note 3 */
115RELOC_TYPE (DIAB_RELSDA_LO, REL) /* note 3 */
116RELOC_TYPE (DIAB_RELSDA_HI, REL) /* note 3 */
117RELOC_TYPE (DIAB_RELSDA_HA, REL) /* note 3 */
118RELOC_TYPE (REL16, REL) /* note 2 */
119RELOC_TYPE (REL16_LO, REL) /* note 2 */
120RELOC_TYPE (REL16_HI, REL) /* note 2 */
121RELOC_TYPE (REL16_HA, REL) /* note 2 */
122RELOC_TYPE (TOC16, REL) /* note 2 */
123
124/* Notes from Alan Modra:
125
126 1) These relocs should not really appear in EXEC or DYN, but they do,
127 primarily due to improper assembly or non-pic shared objects. They
128 will cause TEXTREL to be set. I marked them in the table, because
129 numerous people seem to think non-pic shared libs are a good idea.
130
131 2) As for (1), these relocs can appear anywhere with improper
132 assembler. I should probably make ld reject anything other than the
133 cases allowed in this table. Not seen in the wild, so I haven't
134 added the other cases.
135
136 3) Not used in SYSV4
137*/