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