Lines Matching refs:ELF

33 using namespace ELF;
174 { "None", ELF::ELFCLASSNONE },
175 { "32-bit", ELF::ELFCLASS32 },
176 { "64-bit", ELF::ELFCLASS64 },
180 { "None", ELF::ELFDATANONE },
181 { "LittleEndian", ELF::ELFDATA2LSB },
182 { "BigEndian", ELF::ELFDATA2MSB },
186 { "None", ELF::ET_NONE },
187 { "Relocatable", ELF::ET_REL },
188 { "Executable", ELF::ET_EXEC },
189 { "SharedObject", ELF::ET_DYN },
190 { "Core", ELF::ET_CORE },
194 { "SystemV", ELF::ELFOSABI_NONE },
195 { "HPUX", ELF::ELFOSABI_HPUX },
196 { "NetBSD", ELF::ELFOSABI_NETBSD },
197 { "GNU/Linux", ELF::ELFOSABI_LINUX },
198 { "GNU/Hurd", ELF::ELFOSABI_HURD },
199 { "Solaris", ELF::ELFOSABI_SOLARIS },
200 { "AIX", ELF::ELFOSABI_AIX },
201 { "IRIX", ELF::ELFOSABI_IRIX },
202 { "FreeBSD", ELF::ELFOSABI_FREEBSD },
203 { "TRU64", ELF::ELFOSABI_TRU64 },
204 { "Modesto", ELF::ELFOSABI_MODESTO },
205 { "OpenBSD", ELF::ELFOSABI_OPENBSD },
206 { "OpenVMS", ELF::ELFOSABI_OPENVMS },
207 { "NSK", ELF::ELFOSABI_NSK },
208 { "AROS", ELF::ELFOSABI_AROS },
209 { "FenixOS", ELF::ELFOSABI_FENIXOS },
210 { "CloudABI", ELF::ELFOSABI_CLOUDABI },
211 { "C6000_ELFABI", ELF::ELFOSABI_C6000_ELFABI },
212 { "C6000_LINUX" , ELF::ELFOSABI_C6000_LINUX },
213 { "ARM", ELF::ELFOSABI_ARM },
214 { "Standalone" , ELF::ELFOSABI_STANDALONE }
218 LLVM_READOBJ_ENUM_ENT(ELF, EM_NONE ),
219 LLVM_READOBJ_ENUM_ENT(ELF, EM_M32 ),
220 LLVM_READOBJ_ENUM_ENT(ELF, EM_SPARC ),
221 LLVM_READOBJ_ENUM_ENT(ELF, EM_386 ),
222 LLVM_READOBJ_ENUM_ENT(ELF, EM_68K ),
223 LLVM_READOBJ_ENUM_ENT(ELF, EM_88K ),
224 LLVM_READOBJ_ENUM_ENT(ELF, EM_486 ),
225 LLVM_READOBJ_ENUM_ENT(ELF, EM_860 ),
226 LLVM_READOBJ_ENUM_ENT(ELF, EM_MIPS ),
227 LLVM_READOBJ_ENUM_ENT(ELF, EM_S370 ),
228 LLVM_READOBJ_ENUM_ENT(ELF, EM_MIPS_RS3_LE ),
229 LLVM_READOBJ_ENUM_ENT(ELF, EM_PARISC ),
230 LLVM_READOBJ_ENUM_ENT(ELF, EM_VPP500 ),
231 LLVM_READOBJ_ENUM_ENT(ELF, EM_SPARC32PLUS ),
232 LLVM_READOBJ_ENUM_ENT(ELF, EM_960 ),
233 LLVM_READOBJ_ENUM_ENT(ELF, EM_PPC ),
234 LLVM_READOBJ_ENUM_ENT(ELF, EM_PPC64 ),
235 LLVM_READOBJ_ENUM_ENT(ELF, EM_S390 ),
236 LLVM_READOBJ_ENUM_ENT(ELF, EM_SPU ),
237 LLVM_READOBJ_ENUM_ENT(ELF, EM_V800 ),
238 LLVM_READOBJ_ENUM_ENT(ELF, EM_FR20 ),
239 LLVM_READOBJ_ENUM_ENT(ELF, EM_RH32 ),
240 LLVM_READOBJ_ENUM_ENT(ELF, EM_RCE ),
241 LLVM_READOBJ_ENUM_ENT(ELF, EM_ARM ),
242 LLVM_READOBJ_ENUM_ENT(ELF, EM_ALPHA ),
243 LLVM_READOBJ_ENUM_ENT(ELF, EM_SH ),
244 LLVM_READOBJ_ENUM_ENT(ELF, EM_SPARCV9 ),
245 LLVM_READOBJ_ENUM_ENT(ELF, EM_TRICORE ),
246 LLVM_READOBJ_ENUM_ENT(ELF, EM_ARC ),
247 LLVM_READOBJ_ENUM_ENT(ELF, EM_H8_300 ),
248 LLVM_READOBJ_ENUM_ENT(ELF, EM_H8_300H ),
249 LLVM_READOBJ_ENUM_ENT(ELF, EM_H8S ),
250 LLVM_READOBJ_ENUM_ENT(ELF, EM_H8_500 ),
251 LLVM_READOBJ_ENUM_ENT(ELF, EM_IA_64 ),
252 LLVM_READOBJ_ENUM_ENT(ELF, EM_MIPS_X ),
253 LLVM_READOBJ_ENUM_ENT(ELF, EM_COLDFIRE ),
254 LLVM_READOBJ_ENUM_ENT(ELF, EM_68HC12 ),
255 LLVM_READOBJ_ENUM_ENT(ELF, EM_MMA ),
256 LLVM_READOBJ_ENUM_ENT(ELF, EM_PCP ),
257 LLVM_READOBJ_ENUM_ENT(ELF, EM_NCPU ),
258 LLVM_READOBJ_ENUM_ENT(ELF, EM_NDR1 ),
259 LLVM_READOBJ_ENUM_ENT(ELF, EM_STARCORE ),
260 LLVM_READOBJ_ENUM_ENT(ELF, EM_ME16 ),
261 LLVM_READOBJ_ENUM_ENT(ELF, EM_ST100 ),
262 LLVM_READOBJ_ENUM_ENT(ELF, EM_TINYJ ),
263 LLVM_READOBJ_ENUM_ENT(ELF, EM_X86_64 ),
264 LLVM_READOBJ_ENUM_ENT(ELF, EM_PDSP ),
265 LLVM_READOBJ_ENUM_ENT(ELF, EM_PDP10 ),
266 LLVM_READOBJ_ENUM_ENT(ELF, EM_PDP11 ),
267 LLVM_READOBJ_ENUM_ENT(ELF, EM_FX66 ),
268 LLVM_READOBJ_ENUM_ENT(ELF, EM_ST9PLUS ),
269 LLVM_READOBJ_ENUM_ENT(ELF, EM_ST7 ),
270 LLVM_READOBJ_ENUM_ENT(ELF, EM_68HC16 ),
271 LLVM_READOBJ_ENUM_ENT(ELF, EM_68HC11 ),
272 LLVM_READOBJ_ENUM_ENT(ELF, EM_68HC08 ),
273 LLVM_READOBJ_ENUM_ENT(ELF, EM_68HC05 ),
274 LLVM_READOBJ_ENUM_ENT(ELF, EM_SVX ),
275 LLVM_READOBJ_ENUM_ENT(ELF, EM_ST19 ),
276 LLVM_READOBJ_ENUM_ENT(ELF, EM_VAX ),
277 LLVM_READOBJ_ENUM_ENT(ELF, EM_CRIS ),
278 LLVM_READOBJ_ENUM_ENT(ELF, EM_JAVELIN ),
279 LLVM_READOBJ_ENUM_ENT(ELF, EM_FIREPATH ),
280 LLVM_READOBJ_ENUM_ENT(ELF, EM_ZSP ),
281 LLVM_READOBJ_ENUM_ENT(ELF, EM_MMIX ),
282 LLVM_READOBJ_ENUM_ENT(ELF, EM_HUANY ),
283 LLVM_READOBJ_ENUM_ENT(ELF, EM_PRISM ),
284 LLVM_READOBJ_ENUM_ENT(ELF, EM_AVR ),
285 LLVM_READOBJ_ENUM_ENT(ELF, EM_FR30 ),
286 LLVM_READOBJ_ENUM_ENT(ELF, EM_D10V ),
287 LLVM_READOBJ_ENUM_ENT(ELF, EM_D30V ),
288 LLVM_READOBJ_ENUM_ENT(ELF, EM_V850 ),
289 LLVM_READOBJ_ENUM_ENT(ELF, EM_M32R ),
290 LLVM_READOBJ_ENUM_ENT(ELF, EM_MN10300 ),
291 LLVM_READOBJ_ENUM_ENT(ELF, EM_MN10200 ),
292 LLVM_READOBJ_ENUM_ENT(ELF, EM_PJ ),
293 LLVM_READOBJ_ENUM_ENT(ELF, EM_OPENRISC ),
294 LLVM_READOBJ_ENUM_ENT(ELF, EM_ARC_COMPACT ),
295 LLVM_READOBJ_ENUM_ENT(ELF, EM_XTENSA ),
296 LLVM_READOBJ_ENUM_ENT(ELF, EM_VIDEOCORE ),
297 LLVM_READOBJ_ENUM_ENT(ELF, EM_TMM_GPP ),
298 LLVM_READOBJ_ENUM_ENT(ELF, EM_NS32K ),
299 LLVM_READOBJ_ENUM_ENT(ELF, EM_TPC ),
300 LLVM_READOBJ_ENUM_ENT(ELF, EM_SNP1K ),
301 LLVM_READOBJ_ENUM_ENT(ELF, EM_ST200 ),
302 LLVM_READOBJ_ENUM_ENT(ELF, EM_IP2K ),
303 LLVM_READOBJ_ENUM_ENT(ELF, EM_MAX ),
304 LLVM_READOBJ_ENUM_ENT(ELF, EM_CR ),
305 LLVM_READOBJ_ENUM_ENT(ELF, EM_F2MC16 ),
306 LLVM_READOBJ_ENUM_ENT(ELF, EM_MSP430 ),
307 LLVM_READOBJ_ENUM_ENT(ELF, EM_BLACKFIN ),
308 LLVM_READOBJ_ENUM_ENT(ELF, EM_SE_C33 ),
309 LLVM_READOBJ_ENUM_ENT(ELF, EM_SEP ),
310 LLVM_READOBJ_ENUM_ENT(ELF, EM_ARCA ),
311 LLVM_READOBJ_ENUM_ENT(ELF, EM_UNICORE ),
312 LLVM_READOBJ_ENUM_ENT(ELF, EM_EXCESS ),
313 LLVM_READOBJ_ENUM_ENT(ELF, EM_DXP ),
314 LLVM_READOBJ_ENUM_ENT(ELF, EM_ALTERA_NIOS2 ),
315 LLVM_READOBJ_ENUM_ENT(ELF, EM_CRX ),
316 LLVM_READOBJ_ENUM_ENT(ELF, EM_XGATE ),
317 LLVM_READOBJ_ENUM_ENT(ELF, EM_C166 ),
318 LLVM_READOBJ_ENUM_ENT(ELF, EM_M16C ),
319 LLVM_READOBJ_ENUM_ENT(ELF, EM_DSPIC30F ),
320 LLVM_READOBJ_ENUM_ENT(ELF, EM_CE ),
321 LLVM_READOBJ_ENUM_ENT(ELF, EM_M32C ),
322 LLVM_READOBJ_ENUM_ENT(ELF, EM_TSK3000 ),
323 LLVM_READOBJ_ENUM_ENT(ELF, EM_RS08 ),
324 LLVM_READOBJ_ENUM_ENT(ELF, EM_SHARC ),
325 LLVM_READOBJ_ENUM_ENT(ELF, EM_ECOG2 ),
326 LLVM_READOBJ_ENUM_ENT(ELF, EM_SCORE7 ),
327 LLVM_READOBJ_ENUM_ENT(ELF, EM_DSP24 ),
328 LLVM_READOBJ_ENUM_ENT(ELF, EM_VIDEOCORE3 ),
329 LLVM_READOBJ_ENUM_ENT(ELF, EM_LATTICEMICO32),
330 LLVM_READOBJ_ENUM_ENT(ELF, EM_SE_C17 ),
331 LLVM_READOBJ_ENUM_ENT(ELF, EM_TI_C6000 ),
332 LLVM_READOBJ_ENUM_ENT(ELF, EM_TI_C2000 ),
333 LLVM_READOBJ_ENUM_ENT(ELF, EM_TI_C5500 ),
334 LLVM_READOBJ_ENUM_ENT(ELF, EM_MMDSP_PLUS ),
335 LLVM_READOBJ_ENUM_ENT(ELF, EM_CYPRESS_M8C ),
336 LLVM_READOBJ_ENUM_ENT(ELF, EM_R32C ),
337 LLVM_READOBJ_ENUM_ENT(ELF, EM_TRIMEDIA ),
338 LLVM_READOBJ_ENUM_ENT(ELF, EM_HEXAGON ),
339 LLVM_READOBJ_ENUM_ENT(ELF, EM_8051 ),
340 LLVM_READOBJ_ENUM_ENT(ELF, EM_STXP7X ),
341 LLVM_READOBJ_ENUM_ENT(ELF, EM_NDS32 ),
342 LLVM_READOBJ_ENUM_ENT(ELF, EM_ECOG1 ),
343 LLVM_READOBJ_ENUM_ENT(ELF, EM_ECOG1X ),
344 LLVM_READOBJ_ENUM_ENT(ELF, EM_MAXQ30 ),
345 LLVM_READOBJ_ENUM_ENT(ELF, EM_XIMO16 ),
346 LLVM_READOBJ_ENUM_ENT(ELF, EM_MANIK ),
347 LLVM_READOBJ_ENUM_ENT(ELF, EM_CRAYNV2 ),
348 LLVM_READOBJ_ENUM_ENT(ELF, EM_RX ),
349 LLVM_READOBJ_ENUM_ENT(ELF, EM_METAG ),
350 LLVM_READOBJ_ENUM_ENT(ELF, EM_MCST_ELBRUS ),
351 LLVM_READOBJ_ENUM_ENT(ELF, EM_ECOG16 ),
352 LLVM_READOBJ_ENUM_ENT(ELF, EM_CR16 ),
353 LLVM_READOBJ_ENUM_ENT(ELF, EM_ETPU ),
354 LLVM_READOBJ_ENUM_ENT(ELF, EM_SLE9X ),
355 LLVM_READOBJ_ENUM_ENT(ELF, EM_L10M ),
356 LLVM_READOBJ_ENUM_ENT(ELF, EM_K10M ),
357 LLVM_READOBJ_ENUM_ENT(ELF, EM_AARCH64 ),
358 LLVM_READOBJ_ENUM_ENT(ELF, EM_AVR32 ),
359 LLVM_READOBJ_ENUM_ENT(ELF, EM_STM8 ),
360 LLVM_READOBJ_ENUM_ENT(ELF, EM_TILE64 ),
361 LLVM_READOBJ_ENUM_ENT(ELF, EM_TILEPRO ),
362 LLVM_READOBJ_ENUM_ENT(ELF, EM_CUDA ),
363 LLVM_READOBJ_ENUM_ENT(ELF, EM_TILEGX ),
364 LLVM_READOBJ_ENUM_ENT(ELF, EM_CLOUDSHIELD ),
365 LLVM_READOBJ_ENUM_ENT(ELF, EM_COREA_1ST ),
366 LLVM_READOBJ_ENUM_ENT(ELF, EM_COREA_2ND ),
367 LLVM_READOBJ_ENUM_ENT(ELF, EM_ARC_COMPACT2 ),
368 LLVM_READOBJ_ENUM_ENT(ELF, EM_OPEN8 ),
369 LLVM_READOBJ_ENUM_ENT(ELF, EM_RL78 ),
370 LLVM_READOBJ_ENUM_ENT(ELF, EM_VIDEOCORE5 ),
371 LLVM_READOBJ_ENUM_ENT(ELF, EM_78KOR ),
372 LLVM_READOBJ_ENUM_ENT(ELF, EM_56800EX )
376 { "Local", ELF::STB_LOCAL },
377 { "Global", ELF::STB_GLOBAL },
378 { "Weak", ELF::STB_WEAK },
379 { "Unique", ELF::STB_GNU_UNIQUE }
383 { "None", ELF::STT_NOTYPE },
384 { "Object", ELF::STT_OBJECT },
385 { "Function", ELF::STT_FUNC },
386 { "Section", ELF::STT_SECTION },
387 { "File", ELF::STT_FILE },
388 { "Common", ELF::STT_COMMON },
389 { "TLS", ELF::STT_TLS },
390 { "GNU_IFunc", ELF::STT_GNU_IFUNC }
395 case ELF::EM_ARM: in getElfSectionType()
397 LLVM_READOBJ_ENUM_CASE(ELF, SHT_ARM_EXIDX); in getElfSectionType()
398 LLVM_READOBJ_ENUM_CASE(ELF, SHT_ARM_PREEMPTMAP); in getElfSectionType()
399 LLVM_READOBJ_ENUM_CASE(ELF, SHT_ARM_ATTRIBUTES); in getElfSectionType()
400 LLVM_READOBJ_ENUM_CASE(ELF, SHT_ARM_DEBUGOVERLAY); in getElfSectionType()
401 LLVM_READOBJ_ENUM_CASE(ELF, SHT_ARM_OVERLAYSECTION); in getElfSectionType()
403 case ELF::EM_HEXAGON: in getElfSectionType()
404 switch (Type) { LLVM_READOBJ_ENUM_CASE(ELF, SHT_HEX_ORDERED); } in getElfSectionType()
405 case ELF::EM_X86_64: in getElfSectionType()
406 switch (Type) { LLVM_READOBJ_ENUM_CASE(ELF, SHT_X86_64_UNWIND); } in getElfSectionType()
407 case ELF::EM_MIPS: in getElfSectionType()
408 case ELF::EM_MIPS_RS3_LE: in getElfSectionType()
410 LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_REGINFO); in getElfSectionType()
411 LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_OPTIONS); in getElfSectionType()
412 LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS); in getElfSectionType()
417 LLVM_READOBJ_ENUM_CASE(ELF, SHT_NULL ); in getElfSectionType()
418 LLVM_READOBJ_ENUM_CASE(ELF, SHT_PROGBITS ); in getElfSectionType()
419 LLVM_READOBJ_ENUM_CASE(ELF, SHT_SYMTAB ); in getElfSectionType()
420 LLVM_READOBJ_ENUM_CASE(ELF, SHT_STRTAB ); in getElfSectionType()
421 LLVM_READOBJ_ENUM_CASE(ELF, SHT_RELA ); in getElfSectionType()
422 LLVM_READOBJ_ENUM_CASE(ELF, SHT_HASH ); in getElfSectionType()
423 LLVM_READOBJ_ENUM_CASE(ELF, SHT_DYNAMIC ); in getElfSectionType()
424 LLVM_READOBJ_ENUM_CASE(ELF, SHT_NOTE ); in getElfSectionType()
425 LLVM_READOBJ_ENUM_CASE(ELF, SHT_NOBITS ); in getElfSectionType()
426 LLVM_READOBJ_ENUM_CASE(ELF, SHT_REL ); in getElfSectionType()
427 LLVM_READOBJ_ENUM_CASE(ELF, SHT_SHLIB ); in getElfSectionType()
428 LLVM_READOBJ_ENUM_CASE(ELF, SHT_DYNSYM ); in getElfSectionType()
429 LLVM_READOBJ_ENUM_CASE(ELF, SHT_INIT_ARRAY ); in getElfSectionType()
430 LLVM_READOBJ_ENUM_CASE(ELF, SHT_FINI_ARRAY ); in getElfSectionType()
431 LLVM_READOBJ_ENUM_CASE(ELF, SHT_PREINIT_ARRAY ); in getElfSectionType()
432 LLVM_READOBJ_ENUM_CASE(ELF, SHT_GROUP ); in getElfSectionType()
433 LLVM_READOBJ_ENUM_CASE(ELF, SHT_SYMTAB_SHNDX ); in getElfSectionType()
434 LLVM_READOBJ_ENUM_CASE(ELF, SHT_GNU_ATTRIBUTES ); in getElfSectionType()
435 LLVM_READOBJ_ENUM_CASE(ELF, SHT_GNU_HASH ); in getElfSectionType()
436 LLVM_READOBJ_ENUM_CASE(ELF, SHT_GNU_verdef ); in getElfSectionType()
437 LLVM_READOBJ_ENUM_CASE(ELF, SHT_GNU_verneed ); in getElfSectionType()
438 LLVM_READOBJ_ENUM_CASE(ELF, SHT_GNU_versym ); in getElfSectionType()
444 LLVM_READOBJ_ENUM_ENT(ELF, SHF_WRITE ),
445 LLVM_READOBJ_ENUM_ENT(ELF, SHF_ALLOC ),
446 LLVM_READOBJ_ENUM_ENT(ELF, SHF_EXCLUDE ),
447 LLVM_READOBJ_ENUM_ENT(ELF, SHF_EXECINSTR ),
448 LLVM_READOBJ_ENUM_ENT(ELF, SHF_MERGE ),
449 LLVM_READOBJ_ENUM_ENT(ELF, SHF_STRINGS ),
450 LLVM_READOBJ_ENUM_ENT(ELF, SHF_INFO_LINK ),
451 LLVM_READOBJ_ENUM_ENT(ELF, SHF_LINK_ORDER ),
452 LLVM_READOBJ_ENUM_ENT(ELF, SHF_OS_NONCONFORMING),
453 LLVM_READOBJ_ENUM_ENT(ELF, SHF_GROUP ),
454 LLVM_READOBJ_ENUM_ENT(ELF, SHF_TLS ),
455 LLVM_READOBJ_ENUM_ENT(ELF, XCORE_SHF_CP_SECTION),
456 LLVM_READOBJ_ENUM_ENT(ELF, XCORE_SHF_DP_SECTION),
457 LLVM_READOBJ_ENUM_ENT(ELF, SHF_MIPS_NOSTRIP )
464 case ELF::EM_ARM: in getElfSegmentType()
466 LLVM_READOBJ_ENUM_CASE(ELF, PT_ARM_EXIDX); in getElfSegmentType()
468 case ELF::EM_MIPS: in getElfSegmentType()
469 case ELF::EM_MIPS_RS3_LE: in getElfSegmentType()
471 LLVM_READOBJ_ENUM_CASE(ELF, PT_MIPS_REGINFO); in getElfSegmentType()
472 LLVM_READOBJ_ENUM_CASE(ELF, PT_MIPS_RTPROC); in getElfSegmentType()
473 LLVM_READOBJ_ENUM_CASE(ELF, PT_MIPS_OPTIONS); in getElfSegmentType()
478 LLVM_READOBJ_ENUM_CASE(ELF, PT_NULL ); in getElfSegmentType()
479 LLVM_READOBJ_ENUM_CASE(ELF, PT_LOAD ); in getElfSegmentType()
480 LLVM_READOBJ_ENUM_CASE(ELF, PT_DYNAMIC); in getElfSegmentType()
481 LLVM_READOBJ_ENUM_CASE(ELF, PT_INTERP ); in getElfSegmentType()
482 LLVM_READOBJ_ENUM_CASE(ELF, PT_NOTE ); in getElfSegmentType()
483 LLVM_READOBJ_ENUM_CASE(ELF, PT_SHLIB ); in getElfSegmentType()
484 LLVM_READOBJ_ENUM_CASE(ELF, PT_PHDR ); in getElfSegmentType()
485 LLVM_READOBJ_ENUM_CASE(ELF, PT_TLS ); in getElfSegmentType()
487 LLVM_READOBJ_ENUM_CASE(ELF, PT_GNU_EH_FRAME); in getElfSegmentType()
488 LLVM_READOBJ_ENUM_CASE(ELF, PT_SUNW_UNWIND); in getElfSegmentType()
490 LLVM_READOBJ_ENUM_CASE(ELF, PT_GNU_STACK); in getElfSegmentType()
491 LLVM_READOBJ_ENUM_CASE(ELF, PT_GNU_RELRO); in getElfSegmentType()
497 LLVM_READOBJ_ENUM_ENT(ELF, PF_X),
498 LLVM_READOBJ_ENUM_ENT(ELF, PF_W),
499 LLVM_READOBJ_ENUM_ENT(ELF, PF_R)
503 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_NOREORDER),
504 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_PIC),
505 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_CPIC),
506 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ABI2),
507 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_32BITMODE),
508 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_NAN2008),
509 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ABI_O32),
510 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_MICROMIPS),
511 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_ASE_M16),
512 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_1),
513 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_2),
514 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_3),
515 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_4),
516 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_5),
517 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_32),
518 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_64),
519 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_32R2),
520 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_64R2),
521 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_32R6),
522 LLVM_READOBJ_ENUM_ENT(ELF, EF_MIPS_ARCH_64R6)
533 W.printBinary("Magic", makeArrayRef(Header->e_ident).slice(ELF::EI_MAG0, in printFileHeaders()
535 W.printEnum ("Class", Header->e_ident[ELF::EI_CLASS], in printFileHeaders()
537 W.printEnum ("DataEncoding", Header->e_ident[ELF::EI_DATA], in printFileHeaders()
539 W.printNumber("FileVersion", Header->e_ident[ELF::EI_VERSION]); in printFileHeaders()
540 W.printEnum ("OS/ABI", Header->e_ident[ELF::EI_OSABI], in printFileHeaders()
542 W.printNumber("ABIVersion", Header->e_ident[ELF::EI_ABIVERSION]); in printFileHeaders()
543 W.printBinary("Unused", makeArrayRef(Header->e_ident).slice(ELF::EI_PAD)); in printFileHeaders()
554 unsigned(ELF::EF_MIPS_ARCH)); in printFileHeaders()
609 if (opts::SectionData && Section->sh_type != ELF::SHT_NOBITS) { in printSections()
627 if (SecI->sh_type != ELF::SHT_REL && SecI->sh_type != ELF::SHT_RELA) in printRelocations()
645 case ELF::SHT_REL: in printRelocations()
656 case ELF::SHT_RELA: in printRelocations()
970 if (Entry.d_tag == ELF::DT_NEEDED) in printNeededLibraries()
1017 if (SI->sh_type != ELF::SHT_ARM_ATTRIBUTES) in printAttributes()
1168 case ELF::DT_MIPS_LOCAL_GOTNO: in getGOTTags()
1172 case ELF::DT_MIPS_GOTSYM: in getGOTTags()
1226 if (Entry.getTag() == ELF::DT_PLTGOT) { in printMipsPLTGOT()