]>
Commit | Line | Data |
---|---|---|
e9f53129 AM |
1 | /* SPU ELF support for BFD. |
2 | ||
a2c58332 | 3 | Copyright (C) 2006-2022 Free Software Foundation, Inc. |
e9f53129 AM |
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 | |
e4e42b45 | 9 | the Free Software Foundation; either version 3 of the License, or |
e9f53129 AM |
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 Foundation, | |
19 | Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ | |
20 | ||
21 | #ifndef _ELF_SPU_H | |
22 | #define _ELF_SPU_H | |
23 | ||
24 | #include "elf/reloc-macros.h" | |
25 | ||
26 | /* elf32-spu.c depends on these being consecutive. */ | |
27 | START_RELOC_NUMBERS (elf_spu_reloc_type) | |
28 | RELOC_NUMBER (R_SPU_NONE, 0) | |
29 | RELOC_NUMBER (R_SPU_ADDR10, 1) | |
30 | RELOC_NUMBER (R_SPU_ADDR16, 2) | |
31 | RELOC_NUMBER (R_SPU_ADDR16_HI, 3) | |
32 | RELOC_NUMBER (R_SPU_ADDR16_LO, 4) | |
33 | RELOC_NUMBER (R_SPU_ADDR18, 5) | |
34 | RELOC_NUMBER (R_SPU_ADDR32, 6) | |
35 | RELOC_NUMBER (R_SPU_REL16, 7) | |
36 | RELOC_NUMBER (R_SPU_ADDR7, 8) | |
37 | RELOC_NUMBER (R_SPU_REL9, 9) | |
38 | RELOC_NUMBER (R_SPU_REL9I, 10) | |
39 | RELOC_NUMBER (R_SPU_ADDR10I, 11) | |
40 | RELOC_NUMBER (R_SPU_ADDR16I, 12) | |
41 | RELOC_NUMBER (R_SPU_REL32, 13) | |
4f4416b5 AM |
42 | RELOC_NUMBER (R_SPU_ADDR16X, 14) |
43 | RELOC_NUMBER (R_SPU_PPU32, 15) | |
44 | RELOC_NUMBER (R_SPU_PPU64, 16) | |
8fdcc58d | 45 | RELOC_NUMBER (R_SPU_ADD_PIC, 17) |
e9f53129 AM |
46 | END_RELOC_NUMBERS (R_SPU_max) |
47 | ||
48 | /* Program header extensions */ | |
49 | ||
50 | /* Mark a PT_LOAD segment as containing an overlay which should not | |
51 | initially be loaded. */ | |
52 | #define PF_OVERLAY (1 << 27) | |
53 | ||
54 | /* SPU Dynamic Object Information. */ | |
55 | #define PT_SPU_INFO 0x70000000 | |
56 | ||
57 | /* SPU plugin information */ | |
58 | #define SPU_PLUGIN_NAME "SPUNAME" | |
59 | #define SPU_PTNOTE_SPUNAME ".note.spu_name" | |
60 | ||
61 | #endif /* _ELF_SPU_H */ |