OLD | NEW |
1 /* PPC ELF support for BFD. | 1 /* PPC ELF support for BFD. |
2 Copyright 1995, 1996, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2008, | 2 Copyright 1995, 1996, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2008, |
3 2009, 2010 Free Software Foundation, Inc. | 3 2009, 2010 Free Software Foundation, Inc. |
4 | 4 |
5 By Michael Meissner, Cygnus Support, <meissner@cygnus.com>, | 5 By Michael Meissner, Cygnus Support, <meissner@cygnus.com>, |
6 from information in the System V Application Binary Interface, | 6 from information in the System V Application Binary Interface, |
7 PowerPC Processor Supplement and the PowerPC Embedded Application | 7 PowerPC Processor Supplement and the PowerPC Embedded Application |
8 Binary Interface (eabi). | 8 Binary Interface (eabi). |
9 | 9 |
10 This file is part of BFD, the Binary File Descriptor library. | 10 This file is part of BFD, the Binary File Descriptor library. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 RELOC_NUMBER (R_PPC_EMB_SDA2REL, 108) | 124 RELOC_NUMBER (R_PPC_EMB_SDA2REL, 108) |
125 RELOC_NUMBER (R_PPC_EMB_SDA21, 109) | 125 RELOC_NUMBER (R_PPC_EMB_SDA21, 109) |
126 RELOC_NUMBER (R_PPC_EMB_MRKREF, 110) | 126 RELOC_NUMBER (R_PPC_EMB_MRKREF, 110) |
127 RELOC_NUMBER (R_PPC_EMB_RELSEC16, 111) | 127 RELOC_NUMBER (R_PPC_EMB_RELSEC16, 111) |
128 RELOC_NUMBER (R_PPC_EMB_RELST_LO, 112) | 128 RELOC_NUMBER (R_PPC_EMB_RELST_LO, 112) |
129 RELOC_NUMBER (R_PPC_EMB_RELST_HI, 113) | 129 RELOC_NUMBER (R_PPC_EMB_RELST_HI, 113) |
130 RELOC_NUMBER (R_PPC_EMB_RELST_HA, 114) | 130 RELOC_NUMBER (R_PPC_EMB_RELST_HA, 114) |
131 RELOC_NUMBER (R_PPC_EMB_BIT_FLD, 115) | 131 RELOC_NUMBER (R_PPC_EMB_BIT_FLD, 115) |
132 RELOC_NUMBER (R_PPC_EMB_RELSDA, 116) | 132 RELOC_NUMBER (R_PPC_EMB_RELSDA, 116) |
133 | 133 |
| 134 /* PowerPC VLE relocations. */ |
| 135 RELOC_NUMBER (R_PPC_VLE_REL8, 216) |
| 136 RELOC_NUMBER (R_PPC_VLE_REL15, 217) |
| 137 RELOC_NUMBER (R_PPC_VLE_REL24, 218) |
| 138 RELOC_NUMBER (R_PPC_VLE_LO16A, 219) |
| 139 RELOC_NUMBER (R_PPC_VLE_LO16D, 220) |
| 140 RELOC_NUMBER (R_PPC_VLE_HI16A, 221) |
| 141 RELOC_NUMBER (R_PPC_VLE_HI16D, 222) |
| 142 RELOC_NUMBER (R_PPC_VLE_HA16A, 223) |
| 143 RELOC_NUMBER (R_PPC_VLE_HA16D, 224) |
| 144 RELOC_NUMBER (R_PPC_VLE_SDA21, 225) |
| 145 RELOC_NUMBER (R_PPC_VLE_SDA21_LO, 226) |
| 146 RELOC_NUMBER (R_PPC_VLE_SDAREL_LO16A, 227) |
| 147 RELOC_NUMBER (R_PPC_VLE_SDAREL_LO16D, 228) |
| 148 RELOC_NUMBER (R_PPC_VLE_SDAREL_HI16A, 229) |
| 149 RELOC_NUMBER (R_PPC_VLE_SDAREL_HI16D, 230) |
| 150 RELOC_NUMBER (R_PPC_VLE_SDAREL_HA16A, 231) |
| 151 RELOC_NUMBER (R_PPC_VLE_SDAREL_HA16D, 232) |
| 152 |
134 /* Support STT_GNU_IFUNC plt calls. */ | 153 /* Support STT_GNU_IFUNC plt calls. */ |
135 RELOC_NUMBER (R_PPC_IRELATIVE, 248) | 154 RELOC_NUMBER (R_PPC_IRELATIVE, 248) |
136 | 155 |
137 /* These are GNU extensions used in PIC code sequences. */ | 156 /* These are GNU extensions used in PIC code sequences. */ |
138 RELOC_NUMBER (R_PPC_REL16, 249) | 157 RELOC_NUMBER (R_PPC_REL16, 249) |
139 RELOC_NUMBER (R_PPC_REL16_LO, 250) | 158 RELOC_NUMBER (R_PPC_REL16_LO, 250) |
140 RELOC_NUMBER (R_PPC_REL16_HI, 251) | 159 RELOC_NUMBER (R_PPC_REL16_HI, 251) |
141 RELOC_NUMBER (R_PPC_REL16_HA, 252) | 160 RELOC_NUMBER (R_PPC_REL16_HA, 252) |
142 | 161 |
143 /* These are GNU extensions to enable C++ vtable garbage collection. */ | 162 /* These are GNU extensions to enable C++ vtable garbage collection. */ |
(...skipping 15 matching lines...) Expand all Loading... |
159 /* Specify that tls descriptors should be optimized. */ | 178 /* Specify that tls descriptors should be optimized. */ |
160 #define DT_PPC_TLSOPT (DT_LOPROC + 1) | 179 #define DT_PPC_TLSOPT (DT_LOPROC + 1) |
161 | 180 |
162 /* Processor specific flags for the ELF header e_flags field. */ | 181 /* Processor specific flags for the ELF header e_flags field. */ |
163 | 182 |
164 #define EF_PPC_EMB 0x80000000 /* PowerPC embedded flag. */ | 183 #define EF_PPC_EMB 0x80000000 /* PowerPC embedded flag. */ |
165 | 184 |
166 #define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag.
*/ | 185 #define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag.
*/ |
167 #define EF_PPC_RELOCATABLE_LIB 0x00008000 /* PowerPC -mrelocatable-lib fla
g. */ | 186 #define EF_PPC_RELOCATABLE_LIB 0x00008000 /* PowerPC -mrelocatable-lib fla
g. */ |
168 | 187 |
169 /* This bit is reserved by BFD for processor specific stuff. Name | 188 /* Processor specific program headers, p_flags field. */ |
170 it properly so that we can easily stay consistent elsewhere. */ | 189 #define PF_PPC_VLE» » 0x10000000» /* PowerPC VLE. */ |
171 #define SEC_PPC_VLE» » SEC_TIC54X_BLOCK | 190 |
| 191 /* Processor specific section headers, sh_flags field. */ |
| 192 #define SHF_PPC_VLE» » 0x10000000» /* PowerPC VLE text section. */ |
172 | 193 |
173 /* Processor specific section headers, sh_type field. */ | 194 /* Processor specific section headers, sh_type field. */ |
174 | 195 |
175 #define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \ | 196 #define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \ |
176 entries in this section \ | 197 entries in this section \ |
177 based on the address \ | 198 based on the address \ |
178 specified in the associated \ | 199 specified in the associated \ |
179 symbol table entry. */ | 200 symbol table entry. */ |
180 | 201 |
181 /* Object attribute tags. */ | 202 /* Object attribute tags. */ |
(...skipping 11 matching lines...) Expand all Loading... |
193 ABIs affected by the differences. */ | 214 ABIs affected by the differences. */ |
194 Tag_GNU_Power_ABI_Vector = 8, | 215 Tag_GNU_Power_ABI_Vector = 8, |
195 | 216 |
196 /* Value 1 for ABIs using r3/r4 for returning structures <= 8 bytes, | 217 /* Value 1 for ABIs using r3/r4 for returning structures <= 8 bytes, |
197 2 for ABIs using memory; 0 for not tagged or not using any ABIs | 218 2 for ABIs using memory; 0 for not tagged or not using any ABIs |
198 affected by the differences. */ | 219 affected by the differences. */ |
199 Tag_GNU_Power_ABI_Struct_Return = 12 | 220 Tag_GNU_Power_ABI_Struct_Return = 12 |
200 }; | 221 }; |
201 | 222 |
202 #endif /* _ELF_PPC_H */ | 223 #endif /* _ELF_PPC_H */ |
OLD | NEW |