Searched refs:ElfHeader (Results 1 – 3 of 3) sorted by relevance
52 static void initELFHeader(typename ELFT::Ehdr &ElfHeader, uint16_t Machine) { in initELFHeader() argument53 memset(&ElfHeader, 0, sizeof(ElfHeader)); in initELFHeader()55 ElfHeader.e_ident[EI_MAG0] = ElfMagic[EI_MAG0]; in initELFHeader()56 ElfHeader.e_ident[EI_MAG1] = ElfMagic[EI_MAG1]; in initELFHeader()57 ElfHeader.e_ident[EI_MAG2] = ElfMagic[EI_MAG2]; in initELFHeader()58 ElfHeader.e_ident[EI_MAG3] = ElfMagic[EI_MAG3]; in initELFHeader()59 ElfHeader.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32; in initELFHeader()61 ElfHeader.e_ident[EI_DATA] = IsLittleEndian ? ELFDATA2LSB : ELFDATA2MSB; in initELFHeader()62 ElfHeader.e_ident[EI_VERSION] = EV_CURRENT; in initELFHeader()63 ElfHeader.e_ident[EI_OSABI] = ELFOSABI_NONE; in initELFHeader()[all …]
181 const ElfW(Ehdr) *ElfHeader = &__ehdr_start; in __llvm_write_binary_ids()183 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()188 for (I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids()202 Note = (const ElfW(Nhdr) *)((uintptr_t)ElfHeader + in __llvm_write_binary_ids()212 (const ElfW(Nhdr) *)((uintptr_t)ElfHeader + ProgramHeader[I].p_vaddr); in __llvm_write_binary_ids()
3504 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeadersNumString() local3505 if (ElfHeader.e_shnum != 0) in getSectionHeadersNumString()3506 return to_string(ElfHeader.e_shnum); in getSectionHeadersNumString()3524 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeaderTableIndexString() local3525 if (ElfHeader.e_shstrndx != SHN_XINDEX) in getSectionHeaderTableIndexString()3526 return to_string(ElfHeader.e_shstrndx); in getSectionHeaderTableIndexString()3538 return to_string(ElfHeader.e_shstrndx) + " (" + in getSectionHeaderTableIndexString()