Searched refs:ElfHeader (Results 1 – 2 of 2) sorted by relevance
53 static void initELFHeader(typename ELFT::Ehdr &ElfHeader, uint16_t Machine) { in initELFHeader() argument54 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 …]
3157 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeadersNumString() local3158 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() local3178 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()