Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp52 static void initELFHeader(typename ELFT::Ehdr &ElfHeader, uint16_t Machine) { in initELFHeader() argument
53 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 …]
/openbsd-src/gnu/llvm/compiler-rt/lib/profile/
H A DInstrProfilingPlatformLinux.c178 const ElfW(Ehdr) *ElfHeader = &__ehdr_start; in __llvm_write_binary_ids()
180 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()
185 for (I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids()
199 Note = (const ElfW(Nhdr) *)((uintptr_t)ElfHeader + in __llvm_write_binary_ids()
209 (const ElfW(Nhdr) *)((uintptr_t)ElfHeader + ProgramHeader[I].p_vaddr); in __llvm_write_binary_ids()
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3260 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeadersNumString() local
3261 if (ElfHeader.e_shnum != 0) in getSectionHeadersNumString()
3262 return to_string(ElfHeader.e_shnum); in getSectionHeadersNumString()
3280 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeaderTableIndexString() local
3281 if (ElfHeader.e_shstrndx != SHN_XINDEX) in getSectionHeaderTableIndexString()
3282 return to_string(ElfHeader.e_shstrndx); in getSectionHeaderTableIndexString()
3294 return to_string(ElfHeader.e_shstrndx) + " (" + in getSectionHeaderTableIndexString()