1 |
1624 |
jcastillo |
/* HPPA ELF support for BFD.
|
2 |
|
|
Copyright (C) 1993, 1994 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., 675 Mass Ave, Cambridge, MA 02139, 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 |
|
|
/* Processor specific flags for the ELF header e_flags field. */
|
24 |
|
|
|
25 |
|
|
/* Target processor IDs to be placed in the low 16 bits of the flags
|
26 |
|
|
field. Note these names are shared with SOM, and therefore do not
|
27 |
|
|
follow ELF naming conventions. */
|
28 |
|
|
|
29 |
|
|
/* PA 1.0 big endian. */
|
30 |
|
|
#ifndef CPU_PA_RISC1_0
|
31 |
|
|
#define CPU_PA_RISC1_0 0x0000020b
|
32 |
|
|
#endif
|
33 |
|
|
|
34 |
|
|
/* PA 1.1 big endian. */
|
35 |
|
|
#ifndef CPU_PA_RISC1_1
|
36 |
|
|
#define CPU_PA_RISC1_1 0x00000210
|
37 |
|
|
#endif
|
38 |
|
|
|
39 |
|
|
/* PA 1.0 little endian (unsupported) is 0x0000028b. */
|
40 |
|
|
/* PA 1.1 little endian (unsupported) is 0x00000290. */
|
41 |
|
|
|
42 |
|
|
/* Trap null address dereferences. */
|
43 |
|
|
#define ELF_PARISC_TRAPNIL 0x00010000
|
44 |
|
|
|
45 |
|
|
/* .PARISC.archext section is present. */
|
46 |
|
|
#define EF_PARISC_EXT 0x00020000
|
47 |
|
|
|
48 |
|
|
/* Processor specific section types. */
|
49 |
|
|
|
50 |
|
|
/* Holds the global offset table, a table of pointers to external
|
51 |
|
|
data. */
|
52 |
|
|
#define SHT_PARISC_GOT SHT_LOPROC+0
|
53 |
|
|
|
54 |
|
|
/* Nonloadable section containing information in architecture
|
55 |
|
|
extensions used by the code. */
|
56 |
|
|
#define SHT_PARISC_ARCH SHT_LOPROC+1
|
57 |
|
|
|
58 |
|
|
/* Section in which $global$ is defined. */
|
59 |
|
|
#define SHT_PARISC_GLOBAL SHT_LOPROC+2
|
60 |
|
|
|
61 |
|
|
/* Section holding millicode routines (mul, div, rem, dyncall, etc. */
|
62 |
|
|
#define SHT_PARISC_MILLI SHT_LOPROC+3
|
63 |
|
|
|
64 |
|
|
/* Section holding unwind information for use by debuggers. */
|
65 |
|
|
#define SHT_PARISC_UNWIND SHT_LOPROC+4
|
66 |
|
|
|
67 |
|
|
/* Section holding the procedure linkage table. */
|
68 |
|
|
#define SHT_PARISC_PLT SHT_LOPROC+5
|
69 |
|
|
|
70 |
|
|
/* Short initialized and uninitialized data. */
|
71 |
|
|
#define SHT_PARISC_SDATA SHT_LOPROC+6
|
72 |
|
|
#define SHT_PARISC_SBSS SHT_LOPROC+7
|
73 |
|
|
|
74 |
|
|
/* Optional section holding argument location/relocation info. */
|
75 |
|
|
#define SHT_PARISC_SYMEXTN SHT_LOPROC+8
|
76 |
|
|
|
77 |
|
|
/* Option section for linker stubs. */
|
78 |
|
|
#define SHT_PARISC_STUBS SHT_LOPROC+9
|
79 |
|
|
|
80 |
|
|
/* Processor specific section flags. */
|
81 |
|
|
|
82 |
|
|
/* This section is near the global data pointer and thus allows short
|
83 |
|
|
addressing modes to be used. */
|
84 |
|
|
#define SHF_PARISC_SHORT 0x20000000
|
85 |
|
|
|
86 |
|
|
/* Processor specific symbol types. */
|
87 |
|
|
|
88 |
|
|
/* Millicode function entry point. */
|
89 |
|
|
#define STT_PARISC_MILLICODE STT_LOPROC+0
|
90 |
|
|
|