1 | /* HPPA ELF support for BFD.
|
---|
2 | Copyright 1993, 1994, 1995, 1998, 1999, 2000
|
---|
3 | Free Software Foundation, Inc.
|
---|
4 |
|
---|
5 | This file is part of BFD, the Binary File Descriptor library.
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or modify
|
---|
8 | it under the terms of the GNU General Public License as published by
|
---|
9 | the Free Software Foundation; either version 2 of the License, or
|
---|
10 | (at your option) any later version.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful,
|
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program; if not, write to the Free Software
|
---|
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
---|
20 |
|
---|
21 | /* This file holds definitions specific to the HPPA ELF ABI. Note
|
---|
22 | that most of this is not actually implemented by BFD. */
|
---|
23 |
|
---|
24 | #ifndef _ELF_HPPA_H
|
---|
25 | #define _ELF_HPPA_H
|
---|
26 |
|
---|
27 | /* Processor specific flags for the ELF header e_flags field. */
|
---|
28 |
|
---|
29 | /* Trap null address dereferences. */
|
---|
30 | #define EF_PARISC_TRAPNIL 0x00010000
|
---|
31 |
|
---|
32 | /* .PARISC.archext section is present. */
|
---|
33 | #define EF_PARISC_EXT 0x00020000
|
---|
34 |
|
---|
35 | /* Program expects little-endian mode. */
|
---|
36 | #define EF_PARISC_LSB 0x00040000
|
---|
37 |
|
---|
38 | /* Program expects wide mode. */
|
---|
39 | #define EF_PARISC_WIDE 0x00080000
|
---|
40 |
|
---|
41 | /* Do not allow kernel-assisted branch prediction. */
|
---|
42 | #define EF_PARISC_NO_KABP 0x00100000
|
---|
43 |
|
---|
44 | /* Allow lazy swap for dynamically allocated program segments. */
|
---|
45 | #define EF_PARISC_LAZYSWAP 0x00400000
|
---|
46 |
|
---|
47 | /* Architecture version */
|
---|
48 | #define EF_PARISC_ARCH 0x0000ffff
|
---|
49 |
|
---|
50 | #define EFA_PARISC_1_0 0x020b
|
---|
51 | #define EFA_PARISC_1_1 0x0210
|
---|
52 | #define EFA_PARISC_2_0 0x0214
|
---|
53 |
|
---|
54 | /* Special section indices. */
|
---|
55 | /* A symbol that has been declared as a tentative definition in an ANSI C
|
---|
56 | compilation. */
|
---|
57 | #define SHN_PARISC_ANSI_COMMON 0xff00
|
---|
58 |
|
---|
59 | /* A symbol that has been declared as a common block using the
|
---|
60 | huge memory model. */
|
---|
61 | #define SHN_PARISC_HUGE_COMMON 0xff01
|
---|
62 |
|
---|
63 | /* Processor specific section types. */
|
---|
64 |
|
---|
65 | /* Section contains product specific extension bits. */
|
---|
66 | #define SHT_PARISC_EXT 0x70000000
|
---|
67 |
|
---|
68 | /* Section contains unwind table entries. */
|
---|
69 | #define SHT_PARISC_UNWIND 0x70000001
|
---|
70 |
|
---|
71 | /* Section contains debug information for optimized code. */
|
---|
72 | #define SHT_PARISC_DOC 0x70000002
|
---|
73 |
|
---|
74 | /* Section contains code annotations. */
|
---|
75 | #define SHT_PARISC_ANNOT 0x70000003
|
---|
76 |
|
---|
77 | /* These are strictly for compatibility with the older elf32-hppa
|
---|
78 | implementation. Hopefully we can eliminate them in the future. */
|
---|
79 | /* Optional section holding argument location/relocation info. */
|
---|
80 | #define SHT_PARISC_SYMEXTN SHT_LOPROC+8
|
---|
81 |
|
---|
82 | /* Option section for linker stubs. */
|
---|
83 | #define SHT_PARISC_STUBS SHT_LOPROC+9
|
---|
84 |
|
---|
85 | /* Processor specific section flags. */
|
---|
86 |
|
---|
87 | /* Section contains code compiled for static branch prediction. */
|
---|
88 | #define SHF_PARISC_SBP 0x80000000
|
---|
89 |
|
---|
90 | /* Section should be allocated from from GP. */
|
---|
91 | #define SHF_PARISC_HUGE 0x40000000
|
---|
92 |
|
---|
93 | /* Section should go near GP. */
|
---|
94 | #define SHF_PARISC_SHORT 0x20000000
|
---|
95 |
|
---|
96 |
|
---|
97 | /* Identifies the entry point of a millicode routine. */
|
---|
98 | #define STT_PARISC_MILLI 13
|
---|
99 |
|
---|
100 | /* ELF/HPPA relocation types */
|
---|
101 |
|
---|
102 | /* Note: PA-ELF is defined to use only RELA relocations. */
|
---|
103 | #include "elf/reloc-macros.h"
|
---|
104 |
|
---|
105 | START_RELOC_NUMBERS (elf_hppa_reloc_type)
|
---|
106 | RELOC_NUMBER (R_PARISC_NONE, 0) /* No reloc */
|
---|
107 |
|
---|
108 | /* Data / Inst. Format Relocation Expression */
|
---|
109 |
|
---|
110 | RELOC_NUMBER (R_PARISC_DIR32, 1)
|
---|
111 | /* 32-bit word symbol + addend */
|
---|
112 |
|
---|
113 | RELOC_NUMBER (R_PARISC_DIR21L, 2)
|
---|
114 | /* long immediate (7) LR(symbol, addend) */
|
---|
115 |
|
---|
116 | RELOC_NUMBER (R_PARISC_DIR17R, 3)
|
---|
117 | /* branch external (19) RR(symbol, addend) */
|
---|
118 |
|
---|
119 | RELOC_NUMBER (R_PARISC_DIR17F, 4)
|
---|
120 | /* branch external (19) symbol + addend */
|
---|
121 |
|
---|
122 | RELOC_NUMBER (R_PARISC_DIR14R, 6)
|
---|
123 | /* load/store (1) RR(symbol, addend) */
|
---|
124 |
|
---|
125 | RELOC_NUMBER (R_PARISC_DIR14F, 7)
|
---|
126 | /* load/store (1) symbol, addend */
|
---|
127 |
|
---|
128 | /* PC-relative relocation types
|
---|
129 | Typically used for calls.
|
---|
130 | Note PCREL17C and PCREL17F differ only in overflow handling.
|
---|
131 | PCREL17C never reports a relocation error.
|
---|
132 |
|
---|
133 | When supporting argument relocations, function calls must be
|
---|
134 | accompanied by parameter relocation information. This information is
|
---|
135 | carried in the ten high-order bits of the addend field. The remaining
|
---|
136 | 22 bits of of the addend field are sign-extended to form the Addend.
|
---|
137 |
|
---|
138 | Note the code to build argument relocations depends on the
|
---|
139 | addend being zero. A consequence of this limitation is GAS
|
---|
140 | can not perform relocation reductions for function symbols. */
|
---|
141 |
|
---|
142 | RELOC_NUMBER (R_PARISC_PCREL12F, 8)
|
---|
143 | /* op & branch (17) symbol - PC - 8 + addend */
|
---|
144 |
|
---|
145 | RELOC_NUMBER (R_PARISC_PCREL32, 9)
|
---|
146 | /* 32-bit word symbol - PC - 8 + addend */
|
---|
147 |
|
---|
148 | RELOC_NUMBER (R_PARISC_PCREL21L, 10)
|
---|
149 | /* long immediate (7) L(symbol - PC - 8 + addend) */
|
---|
150 |
|
---|
151 | RELOC_NUMBER (R_PARISC_PCREL17R, 11)
|
---|
152 | /* branch external (19) R(symbol - PC - 8 + addend) */
|
---|
153 |
|
---|
154 | RELOC_NUMBER (R_PARISC_PCREL17F, 12)
|
---|
155 | /* branch (20) symbol - PC - 8 + addend */
|
---|
156 |
|
---|
157 | RELOC_NUMBER (R_PARISC_PCREL17C, 13)
|
---|
158 | /* branch (20) symbol - PC - 8 + addend */
|
---|
159 |
|
---|
160 | RELOC_NUMBER (R_PARISC_PCREL14R, 14)
|
---|
161 | /* load/store (1) R(symbol - PC - 8 + addend) */
|
---|
162 |
|
---|
163 | RELOC_NUMBER (R_PARISC_PCREL14F, 15)
|
---|
164 | /* load/store (1) symbol - PC - 8 + addend */
|
---|
165 |
|
---|
166 |
|
---|
167 | /* DP-relative relocation types. */
|
---|
168 | RELOC_NUMBER (R_PARISC_DPREL21L, 18)
|
---|
169 | /* long immediate (7) LR(symbol - GP, addend) */
|
---|
170 |
|
---|
171 | RELOC_NUMBER (R_PARISC_DPREL14WR, 19)
|
---|
172 | /* load/store mod. comp. (2) RR(symbol - GP, addend) */
|
---|
173 |
|
---|
174 | RELOC_NUMBER (R_PARISC_DPREL14DR, 20)
|
---|
175 | /* load/store doubleword (3) RR(symbol - GP, addend) */
|
---|
176 |
|
---|
177 | RELOC_NUMBER (R_PARISC_DPREL14R, 22)
|
---|
178 | /* load/store (1) RR(symbol - GP, addend) */
|
---|
179 |
|
---|
180 | RELOC_NUMBER (R_PARISC_DPREL14F, 23)
|
---|
181 | /* load/store (1) symbol - GP + addend */
|
---|
182 |
|
---|
183 |
|
---|
184 | /* Data linkage table (DLT) relocation types
|
---|
185 |
|
---|
186 | SOM DLT_REL fixup requests are used to for static data references
|
---|
187 | from position-independent code within shared libraries. They are
|
---|
188 | similar to the GOT relocation types in some SVR4 implementations. */
|
---|
189 |
|
---|
190 | RELOC_NUMBER (R_PARISC_DLTREL21L, 26)
|
---|
191 | /* long immediate (7) LR(symbol - GP, addend) */
|
---|
192 |
|
---|
193 | RELOC_NUMBER (R_PARISC_DLTREL14R, 30)
|
---|
194 | /* load/store (1) RR(symbol - GP, addend) */
|
---|
195 |
|
---|
196 | RELOC_NUMBER (R_PARISC_DLTREL14F, 31)
|
---|
197 | /* load/store (1) symbol - GP + addend */
|
---|
198 |
|
---|
199 |
|
---|
200 | /* DLT indirect relocation types */
|
---|
201 | RELOC_NUMBER (R_PARISC_DLTIND21L, 34)
|
---|
202 | /* long immediate (7) L(ltoff(symbol + addend)) */
|
---|
203 |
|
---|
204 | RELOC_NUMBER (R_PARISC_DLTIND14R, 38)
|
---|
205 | /* load/store (1) R(ltoff(symbol + addend)) */
|
---|
206 |
|
---|
207 | RELOC_NUMBER (R_PARISC_DLTIND14F, 39)
|
---|
208 | /* load/store (1) ltoff(symbol + addend) */
|
---|
209 |
|
---|
210 |
|
---|
211 | /* Base relative relocation types. Ugh. These imply lots of state */
|
---|
212 | RELOC_NUMBER (R_PARISC_SETBASE, 40)
|
---|
213 | /* none no reloc; base := sym */
|
---|
214 |
|
---|
215 | RELOC_NUMBER (R_PARISC_SECREL32, 41)
|
---|
216 | /* 32-bit word symbol - SECT + addend */
|
---|
217 |
|
---|
218 | RELOC_NUMBER (R_PARISC_BASEREL21L, 42)
|
---|
219 | /* long immediate (7) LR(symbol - base, addend) */
|
---|
220 |
|
---|
221 | RELOC_NUMBER (R_PARISC_BASEREL17R, 43)
|
---|
222 | /* branch external (19) RR(symbol - base, addend) */
|
---|
223 |
|
---|
224 | RELOC_NUMBER (R_PARISC_BASEREL17F, 44)
|
---|
225 | /* branch external (19) symbol - base + addend */
|
---|
226 |
|
---|
227 | RELOC_NUMBER (R_PARISC_BASEREL14R, 46)
|
---|
228 | /* load/store (1) RR(symbol - base, addend) */
|
---|
229 |
|
---|
230 | RELOC_NUMBER (R_PARISC_BASEREL14F, 47)
|
---|
231 | /* load/store (1) symbol - base, addend */
|
---|
232 |
|
---|
233 |
|
---|
234 | /* Segment relative relocation types. */
|
---|
235 | RELOC_NUMBER (R_PARISC_SEGBASE, 48)
|
---|
236 | /* none no relocation; SB := sym */
|
---|
237 |
|
---|
238 | RELOC_NUMBER (R_PARISC_SEGREL32, 49)
|
---|
239 | /* 32-bit word symbol - SB + addend */
|
---|
240 |
|
---|
241 |
|
---|
242 | /* Offsets from the PLT. */
|
---|
243 | RELOC_NUMBER (R_PARISC_PLTOFF21L, 50)
|
---|
244 | /* long immediate (7) LR(pltoff(symbol), addend) */
|
---|
245 |
|
---|
246 | RELOC_NUMBER (R_PARISC_PLTOFF14R, 54)
|
---|
247 | /* load/store (1) RR(pltoff(symbol), addend) */
|
---|
248 |
|
---|
249 | RELOC_NUMBER (R_PARISC_PLTOFF14F, 55)
|
---|
250 | /* load/store (1) pltoff(symbol) + addend */
|
---|
251 |
|
---|
252 |
|
---|
253 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR32, 57)
|
---|
254 | /* 32-bit word ltoff(fptr(symbol+addend)) */
|
---|
255 |
|
---|
256 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR21L, 58)
|
---|
257 | /* long immediate (7) L(ltoff(fptr(symbol+addend))) */
|
---|
258 |
|
---|
259 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR14R, 62)
|
---|
260 | /* load/store (1) R(ltoff(fptr(symbol+addend))) */
|
---|
261 |
|
---|
262 |
|
---|
263 | RELOC_NUMBER (R_PARISC_FPTR64, 64)
|
---|
264 | /* 64-bit doubleword fptr(symbol+addend) */
|
---|
265 |
|
---|
266 |
|
---|
267 | /* Plabel relocation types. */
|
---|
268 | RELOC_NUMBER (R_PARISC_PLABEL32, 65)
|
---|
269 | /* 32-bit word fptr(symbol) */
|
---|
270 |
|
---|
271 | RELOC_NUMBER (R_PARISC_PLABEL21L, 66)
|
---|
272 | /* long immediate (7) L(fptr(symbol)) */
|
---|
273 |
|
---|
274 | RELOC_NUMBER (R_PARISC_PLABEL14R, 70)
|
---|
275 | /* load/store (1) R(fptr(symbol)) */
|
---|
276 |
|
---|
277 |
|
---|
278 | /* PCREL relocations. */
|
---|
279 | RELOC_NUMBER (R_PARISC_PCREL64, 72)
|
---|
280 | /* 64-bit doubleword symbol - PC - 8 + addend */
|
---|
281 |
|
---|
282 | RELOC_NUMBER (R_PARISC_PCREL22C, 73)
|
---|
283 | /* branch & link (21) symbol - PC - 8 + addend */
|
---|
284 |
|
---|
285 | RELOC_NUMBER (R_PARISC_PCREL22F, 74)
|
---|
286 | /* branch & link (21) symbol - PC - 8 + addend */
|
---|
287 |
|
---|
288 | RELOC_NUMBER (R_PARISC_PCREL14WR, 75)
|
---|
289 | /* load/store mod. comp. (2) R(symbol - PC - 8 + addend) */
|
---|
290 |
|
---|
291 | RELOC_NUMBER (R_PARISC_PCREL14DR, 76)
|
---|
292 | /* load/store doubleword (3) R(symbol - PC - 8 + addend) */
|
---|
293 |
|
---|
294 | RELOC_NUMBER (R_PARISC_PCREL16F, 77)
|
---|
295 | /* load/store (1) symbol - PC - 8 + addend */
|
---|
296 |
|
---|
297 | RELOC_NUMBER (R_PARISC_PCREL16WF, 78)
|
---|
298 | /* load/store mod. comp. (2) symbol - PC - 8 + addend */
|
---|
299 |
|
---|
300 | RELOC_NUMBER (R_PARISC_PCREL16DF, 79)
|
---|
301 | /* load/store doubleword (3) symbol - PC - 8 + addend */
|
---|
302 |
|
---|
303 |
|
---|
304 | RELOC_NUMBER (R_PARISC_DIR64, 80)
|
---|
305 | /* 64-bit doubleword symbol + addend */
|
---|
306 |
|
---|
307 | RELOC_NUMBER (R_PARISC_DIR64WR, 81)
|
---|
308 | /* 64-bit doubleword RR(symbol, addend) */
|
---|
309 |
|
---|
310 | RELOC_NUMBER (R_PARISC_DIR64DR, 82)
|
---|
311 | /* 64-bit doubleword RR(symbol, addend) */
|
---|
312 |
|
---|
313 | RELOC_NUMBER (R_PARISC_DIR14WR, 83)
|
---|
314 | /* load/store mod. comp. (2) RR(symbol, addend) */
|
---|
315 |
|
---|
316 | RELOC_NUMBER (R_PARISC_DIR14DR, 84)
|
---|
317 | /* load/store doubleword (3) RR(symbol, addend) */
|
---|
318 |
|
---|
319 | RELOC_NUMBER (R_PARISC_DIR16F, 85)
|
---|
320 | /* load/store (1) symbol + addend */
|
---|
321 |
|
---|
322 | RELOC_NUMBER (R_PARISC_DIR16WF, 86)
|
---|
323 | /* load/store mod. comp. (2) symbol + addend */
|
---|
324 |
|
---|
325 | RELOC_NUMBER (R_PARISC_DIR16DF, 87)
|
---|
326 | /* load/store doubleword (3) symbol + addend */
|
---|
327 |
|
---|
328 | RELOC_NUMBER (R_PARISC_GPREL64, 88)
|
---|
329 | /* 64-bit doubleword symbol - GP + addend */
|
---|
330 |
|
---|
331 | RELOC_NUMBER (R_PARISC_DLTREL14WR, 91)
|
---|
332 | /* load/store mod. comp. (2) RR(symbol - GP, addend) */
|
---|
333 |
|
---|
334 | RELOC_NUMBER (R_PARISC_DLTREL14DR, 92)
|
---|
335 | /* load/store doubleword (3) RR(symbol - GP, addend) */
|
---|
336 |
|
---|
337 | RELOC_NUMBER (R_PARISC_GPREL16F, 93)
|
---|
338 | /* load/store (1) symbol - GP + addend */
|
---|
339 |
|
---|
340 | RELOC_NUMBER (R_PARISC_GPREL16WF, 94)
|
---|
341 | /* load/store mod. comp. (2) symbol - GP + addend */
|
---|
342 |
|
---|
343 | RELOC_NUMBER (R_PARISC_GPREL16DF, 95)
|
---|
344 | /* load/store doubleword (3) symbol - GP + addend */
|
---|
345 |
|
---|
346 |
|
---|
347 | RELOC_NUMBER (R_PARISC_LTOFF64, 96)
|
---|
348 | /* 64-bit doubleword ltoff(symbol + addend) */
|
---|
349 |
|
---|
350 | RELOC_NUMBER (R_PARISC_DLTIND14WR, 99)
|
---|
351 | /* load/store mod. comp. (2) R(ltoff(symbol + addend)) */
|
---|
352 |
|
---|
353 | RELOC_NUMBER (R_PARISC_DLTIND14DR, 100)
|
---|
354 | /* load/store doubleword (3) R(ltoff(symbol + addend)) */
|
---|
355 |
|
---|
356 | RELOC_NUMBER (R_PARISC_LTOFF16F, 101)
|
---|
357 | /* load/store (1) ltoff(symbol + addend) */
|
---|
358 |
|
---|
359 | RELOC_NUMBER (R_PARISC_LTOFF16WF, 102)
|
---|
360 | /* load/store mod. comp. (2) ltoff(symbol + addend) */
|
---|
361 |
|
---|
362 | RELOC_NUMBER (R_PARISC_LTOFF16DF, 103)
|
---|
363 | /* load/store doubleword (3) ltoff(symbol + addend) */
|
---|
364 |
|
---|
365 |
|
---|
366 | RELOC_NUMBER (R_PARISC_SECREL64, 104)
|
---|
367 | /* 64-bit doubleword symbol - SECT + addend */
|
---|
368 |
|
---|
369 | RELOC_NUMBER (R_PARISC_BASEREL14WR, 107)
|
---|
370 | /* load/store mod. comp. (2) RR(symbol - base, addend) */
|
---|
371 |
|
---|
372 | RELOC_NUMBER (R_PARISC_BASEREL14DR, 108)
|
---|
373 | /* load/store doubleword (3) RR(symbol - base, addend) */
|
---|
374 |
|
---|
375 |
|
---|
376 | RELOC_NUMBER (R_PARISC_SEGREL64, 112)
|
---|
377 | /* 64-bit doubleword symbol - SB + addend */
|
---|
378 |
|
---|
379 | RELOC_NUMBER (R_PARISC_PLTOFF14WR, 115)
|
---|
380 | /* load/store mod. comp. (2) RR(pltoff(symbol), addend) */
|
---|
381 |
|
---|
382 | RELOC_NUMBER (R_PARISC_PLTOFF14DR, 116)
|
---|
383 | /* load/store doubleword (3) RR(pltoff(symbol), addend) */
|
---|
384 |
|
---|
385 | RELOC_NUMBER (R_PARISC_PLTOFF16F, 117)
|
---|
386 | /* load/store (1) pltoff(symbol) + addend */
|
---|
387 |
|
---|
388 | RELOC_NUMBER (R_PARISC_PLTOFF16WF, 118)
|
---|
389 | /* load/store mod. comp. (2) pltoff(symbol) + addend */
|
---|
390 |
|
---|
391 | RELOC_NUMBER (R_PARISC_PLTOFF16DF, 119)
|
---|
392 | /* load/store doubleword (3) pltoff(symbol) + addend */
|
---|
393 |
|
---|
394 |
|
---|
395 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR64, 120)
|
---|
396 | /* 64-bit doubleword ltoff(fptr(symbol+addend)) */
|
---|
397 |
|
---|
398 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR14WR, 123)
|
---|
399 | /* load/store mod. comp. (2) R(ltoff(fptr(symbol+addend))) */
|
---|
400 |
|
---|
401 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR14DR, 124)
|
---|
402 | /* load/store doubleword (3) R(ltoff(fptr(symbol+addend))) */
|
---|
403 |
|
---|
404 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR16F, 125)
|
---|
405 | /* load/store (1) ltoff(fptr(symbol+addend)) */
|
---|
406 |
|
---|
407 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR16WF, 126)
|
---|
408 | /* load/store mod. comp. (2) ltoff(fptr(symbol+addend)) */
|
---|
409 |
|
---|
410 | RELOC_NUMBER (R_PARISC_LTOFF_FPTR16DF, 127)
|
---|
411 | /* load/store doubleword (3) ltoff(fptr(symbol+addend)) */
|
---|
412 |
|
---|
413 |
|
---|
414 | RELOC_NUMBER (R_PARISC_COPY, 128)
|
---|
415 | /* data Dynamic relocations only */
|
---|
416 |
|
---|
417 | RELOC_NUMBER (R_PARISC_IPLT, 129)
|
---|
418 | /* plt */
|
---|
419 |
|
---|
420 | RELOC_NUMBER (R_PARISC_EPLT, 130)
|
---|
421 | /* plt */
|
---|
422 |
|
---|
423 |
|
---|
424 | RELOC_NUMBER (R_PARISC_TPREL32, 153)
|
---|
425 | /* 32-bit word symbol - TP + addend */
|
---|
426 |
|
---|
427 | RELOC_NUMBER (R_PARISC_TPREL21L, 154)
|
---|
428 | /* long immediate (7) LR(symbol - TP, addend) */
|
---|
429 |
|
---|
430 | RELOC_NUMBER (R_PARISC_TPREL14R, 158)
|
---|
431 | /* load/store (1) RR(symbol - TP, addend) */
|
---|
432 |
|
---|
433 |
|
---|
434 | RELOC_NUMBER (R_PARISC_LTOFF_TP21L, 162)
|
---|
435 | /* long immediate (7) L(ltoff(symbol - TP + addend)) */
|
---|
436 |
|
---|
437 | RELOC_NUMBER (R_PARISC_LTOFF_TP14R, 166)
|
---|
438 | /* load/store (1) R(ltoff(symbol - TP + addend)) */
|
---|
439 |
|
---|
440 | RELOC_NUMBER (R_PARISC_LTOFF_TP14F, 167)
|
---|
441 | /* load/store (1) ltoff(symbol - TP + addend) */
|
---|
442 |
|
---|
443 |
|
---|
444 | RELOC_NUMBER (R_PARISC_TPREL64, 216)
|
---|
445 | /* 64-bit word symbol - TP + addend */
|
---|
446 |
|
---|
447 | RELOC_NUMBER (R_PARISC_TPREL14WR, 219)
|
---|
448 | /* load/store mod. comp. (2) RR(symbol - TP, addend) */
|
---|
449 |
|
---|
450 | RELOC_NUMBER (R_PARISC_TPREL14DR, 220)
|
---|
451 | /* load/store doubleword (3) RR(symbol - TP, addend) */
|
---|
452 |
|
---|
453 | RELOC_NUMBER (R_PARISC_TPREL16F, 221)
|
---|
454 | /* load/store (1) symbol - TP + addend */
|
---|
455 |
|
---|
456 | RELOC_NUMBER (R_PARISC_TPREL16WF, 222)
|
---|
457 | /* load/store mod. comp. (2) symbol - TP + addend */
|
---|
458 |
|
---|
459 | RELOC_NUMBER (R_PARISC_TPREL16DF, 223)
|
---|
460 | /* load/store doubleword (3) symbol - TP + addend */
|
---|
461 |
|
---|
462 |
|
---|
463 | RELOC_NUMBER (R_PARISC_LTOFF_TP64, 224)
|
---|
464 | /* 64-bit doubleword ltoff(symbol - TP + addend) */
|
---|
465 |
|
---|
466 | RELOC_NUMBER (R_PARISC_LTOFF_TP14WR, 227)
|
---|
467 | /* load/store mod. comp. (2) R(ltoff(symbol - TP + addend)) */
|
---|
468 |
|
---|
469 | RELOC_NUMBER (R_PARISC_LTOFF_TP14DR, 228)
|
---|
470 | /* load/store doubleword (3) R(ltoff(symbol - TP + addend)) */
|
---|
471 |
|
---|
472 | RELOC_NUMBER (R_PARISC_LTOFF_TP16F, 229)
|
---|
473 | /* load/store (1) ltoff(symbol - TP + addend) */
|
---|
474 |
|
---|
475 | RELOC_NUMBER (R_PARISC_LTOFF_TP16WF, 230)
|
---|
476 | /* load/store mod. comp. (2) ltoff(symbol - TP + addend) */
|
---|
477 |
|
---|
478 | RELOC_NUMBER (R_PARISC_LTOFF_TP16DF, 231)
|
---|
479 | /* load/store doubleword (3) ltoff(symbol - TP + addend) */
|
---|
480 |
|
---|
481 | RELOC_NUMBER (R_PARISC_GNU_VTENTRY, 232)
|
---|
482 | RELOC_NUMBER (R_PARISC_GNU_VTINHERIT, 233)
|
---|
483 |
|
---|
484 | END_RELOC_NUMBERS (R_PARISC_UNIMPLEMENTED)
|
---|
485 |
|
---|
486 | #ifndef RELOC_MACROS_GEN_FUNC
|
---|
487 | typedef enum elf_hppa_reloc_type elf_hppa_reloc_type;
|
---|
488 | #endif
|
---|
489 |
|
---|
490 | #define PT_PARISC_ARCHEXT 0x70000000
|
---|
491 | #define PT_PARISC_UNWIND 0x70000001
|
---|
492 | #define PF_PARISC_SBP 0x08000000
|
---|
493 | #define PF_HP_PAGE_SIZE 0x00100000
|
---|
494 | #define PF_HP_FAR_SHARED 0x00200000
|
---|
495 | #define PF_HP_NEAR_SHARED 0x00400000
|
---|
496 | #define PF_HP_CODE 0x01000000
|
---|
497 | #define PF_HP_MODIFY 0x02000000
|
---|
498 | #define PF_HP_LAZYSWAP 0x04000000
|
---|
499 | #define PF_HP_SBP 0x08000000
|
---|
500 |
|
---|
501 | |
---|
502 |
|
---|
503 | /* Processor specific dynamic array tags. */
|
---|
504 |
|
---|
505 | /* Arggh. HP's tools define these symbols based on the
|
---|
506 | old value of DT_LOOS. So we must do the same to be
|
---|
507 | compatible. */
|
---|
508 | #define DT_HP_LOAD_MAP (OLD_DT_LOOS + 0x0)
|
---|
509 | #define DT_HP_DLD_FLAGS (OLD_DT_LOOS + 0x1)
|
---|
510 | #define DT_HP_DLD_HOOK (OLD_DT_LOOS + 0x2)
|
---|
511 | #define DT_HP_UX10_INIT (OLD_DT_LOOS + 0x3)
|
---|
512 | #define DT_HP_UX10_INITSZ (OLD_DT_LOOS + 0x4)
|
---|
513 | #define DT_HP_PREINIT (OLD_DT_LOOS + 0x5)
|
---|
514 | #define DT_HP_PREINITSZ (OLD_DT_LOOS + 0x6)
|
---|
515 | #define DT_HP_NEEDED (OLD_DT_LOOS + 0x7)
|
---|
516 | #define DT_HP_TIME_STAMP (OLD_DT_LOOS + 0x8)
|
---|
517 | #define DT_HP_CHECKSUM (OLD_DT_LOOS + 0x9)
|
---|
518 | #define DT_HP_GST_SIZE (OLD_DT_LOOS + 0xa)
|
---|
519 | #define DT_HP_GST_VERSION (OLD_DT_LOOS + 0xb)
|
---|
520 | #define DT_HP_GST_HASHVAL (OLD_DT_LOOS + 0xc)
|
---|
521 |
|
---|
522 | /* Values for DT_HP_DLD_FLAGS. */
|
---|
523 | #define DT_HP_DEBUG_PRIVATE 0x0001 /* Map text private */
|
---|
524 | #define DT_HP_DEBUG_CALLBACK 0x0002 /* Callback */
|
---|
525 | #define DT_HP_DEBUG_CALLBACK_BOR 0x0004 /* BOR callback */
|
---|
526 | #define DT_HP_NO_ENVVAR 0x0008 /* No env var */
|
---|
527 | #define DT_HP_BIND_NOW 0x0010 /* Bind now */
|
---|
528 | #define DT_HP_BIND_NONFATAL 0x0020 /* Bind non-fatal */
|
---|
529 | #define DT_HP_BIND_VERBOSE 0x0040 /* Bind verbose */
|
---|
530 | #define DT_HP_BIND_RESTRICTED 0x0080 /* Bind restricted */
|
---|
531 | #define DT_HP_BIND_SYMBOLIC 0x0100 /* Bind symbolic */
|
---|
532 | #define DT_HP_RPATH_FIRST 0x0200 /* RPATH first */
|
---|
533 | #define DT_HP_BIND_DEPTH_FIRST 0x0400 /* Bind depth-first */
|
---|
534 |
|
---|
535 | /* Program header extensions. */
|
---|
536 | #define PT_HP_TLS (PT_LOOS + 0x0)
|
---|
537 | #define PT_HP_CORE_NONE (PT_LOOS + 0x1)
|
---|
538 | #define PT_HP_CORE_VERSION (PT_LOOS + 0x2)
|
---|
539 | #define PT_HP_CORE_KERNEL (PT_LOOS + 0x3)
|
---|
540 | #define PT_HP_CORE_COMM (PT_LOOS + 0x4)
|
---|
541 | #define PT_HP_CORE_PROC (PT_LOOS + 0x5)
|
---|
542 | #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
|
---|
543 | #define PT_HP_CORE_STACK (PT_LOOS + 0x7)
|
---|
544 | #define PT_HP_CORE_SHM (PT_LOOS + 0x8)
|
---|
545 | #define PT_HP_CORE_MMF (PT_LOOS + 0x9)
|
---|
546 | #define PT_HP_PARALLEL (PT_LOOS + 0x10)
|
---|
547 | #define PT_HP_FASTBIND (PT_LOOS + 0x11)
|
---|
548 |
|
---|
549 | /* Additional symbol types. */
|
---|
550 | #define STT_HP_OPAQUE (STT_LOOS + 0x1)
|
---|
551 | #define STT_HP_STUB (STT_LOOS + 0x2)
|
---|
552 |
|
---|
553 | #endif /* _ELF_HPPA_H */
|
---|