Home
last modified time | relevance | path

Searched refs:ElfHeader (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp53 static void initELFHeader(typename ELFT::Ehdr &ElfHeader, uint16_t Machine) { in initELFHeader() argument
54 memset(&ElfHeader, 0, sizeof(ElfHeader)); in initELFHeader()
56 ElfHeader.e_ident[EI_MAG0] = ElfMagic[EI_MAG0]; in initELFHeader()
57 ElfHeader.e_ident[EI_MAG1] = ElfMagic[EI_MAG1]; in initELFHeader()
58 ElfHeader.e_ident[EI_MAG2] = ElfMagic[EI_MAG2]; in initELFHeader()
59 ElfHeader.e_ident[EI_MAG3] = ElfMagic[EI_MAG3]; in initELFHeader()
60 ElfHeader.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32; in initELFHeader()
62 ElfHeader.e_ident[EI_DATA] = IsLittleEndian ? ELFDATA2LSB : ELFDATA2MSB; in initELFHeader()
63 ElfHeader.e_ident[EI_VERSION] = EV_CURRENT; in initELFHeader()
64 ElfHeader.e_ident[EI_OSABI] = ELFOSABI_NONE; in initELFHeader()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3157 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeadersNumString() local
3158 if (ElfHeader.e_shnum != 0) in getSectionHeadersNumString()
3159 return to_string(ElfHeader.e_shnum); in getSectionHeadersNumString()
3177 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeaderTableIndexString() local
3178 if (ElfHeader.e_shstrndx != SHN_XINDEX) in getSectionHeaderTableIndexString()
3179 return to_string(ElfHeader.e_shstrndx); in getSectionHeaderTableIndexString()
3191 return to_string(ElfHeader.e_shstrndx) + " (" + in getSectionHeaderTableIndexString()