Home
last modified time | relevance | path

Searched refs:Phdr (Results 1 – 25 of 32) sorted by relevance

12

/openbsd/src/gnu/llvm/llvm/tools/llvm-objdump/
DELFDump.cpp152 for (const typename ELFT::Phdr &Phdr : *PhdrRangeOrErr) in getSectionLMA()
153 if ((Phdr.p_type == ELF::PT_LOAD) && (Phdr.p_vaddr <= Sec.getAddress()) && in getSectionLMA()
154 (Phdr.p_vaddr + Phdr.p_memsz > Sec.getAddress())) in getSectionLMA()
155 return Sec.getAddress() - Phdr.p_vaddr + Phdr.p_paddr; in getSectionLMA()
224 for (const typename ELFT::Phdr &Phdr : *ProgramHeaderOrError) { in printProgramHeaders()
225 switch (Phdr.p_type) { in printProgramHeaders()
280 outs() << "off " << format(Fmt, (uint64_t)Phdr.p_offset) << "vaddr " in printProgramHeaders()
281 << format(Fmt, (uint64_t)Phdr.p_vaddr) << "paddr " in printProgramHeaders()
282 << format(Fmt, (uint64_t)Phdr.p_paddr) in printProgramHeaders()
284 countTrailingZeros<uint64_t>(Phdr.p_align)) in printProgramHeaders()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Object/
DELF.cpp550 for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) { in dynamicEntries()
551 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries()
552 Dyn = ArrayRef(reinterpret_cast<const Elf_Dyn *>(base() + Phdr.p_offset), in dynamicEntries()
553 Phdr.p_filesz / sizeof(Elf_Dyn)); in dynamicEntries()
598 for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) in toMappedAddr()
599 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr()
600 LoadSegments.push_back(const_cast<Elf_Phdr *>(&Phdr)); in toMappedAddr()
614 LoadSegments, VAddr, [](uint64_t VAddr, const Elf_Phdr_Impl<ELFT> *Phdr) { in toMappedAddr() argument
615 return VAddr < Phdr->p_vaddr; in toMappedAddr()
622 const Elf_Phdr &Phdr = **I; in toMappedAddr() local
[all …]
/openbsd/src/gnu/llvm/llvm/include/llvm/Object/
DELF.h153 const typename ELFT::Phdr &Phdr) { in getPhdrIndexForError() argument
156 return ("[index " + Twine(&Phdr - &Headers->front()) + "]").str(); in getPhdrIndexForError()
309 Elf_Note_Iterator notes_begin(const Elf_Phdr &Phdr, Error &Err) const { in notes_begin() argument
310 assert(Phdr.p_type == ELF::PT_NOTE && "Phdr is not of type PT_NOTE"); in notes_begin()
312 if (Phdr.p_offset + Phdr.p_filesz > getBufSize()) { in notes_begin()
314 createError("invalid offset (0x" + Twine::utohexstr(Phdr.p_offset) + in notes_begin()
315 ") or size (0x" + Twine::utohexstr(Phdr.p_filesz) + ")"); in notes_begin()
318 return Elf_Note_Iterator(base() + Phdr.p_offset, Phdr.p_filesz, Err); in notes_begin()
352 iterator_range<Elf_Note_Iterator> notes(const Elf_Phdr &Phdr, in notes() argument
354 return make_range(notes_begin(Phdr, Err), notes_end()); in notes()
[all …]
DELFTypes.h62 using Phdr = Elf_Phdr_Impl<ELFType<E, Is64>>; member
84 using PhdrRange = ArrayRef<Phdr>;
117 using Elf_Phdr = typename ELFT::Phdr; \
/openbsd/src/gnu/llvm/llvm/tools/llvm-readobj/
DDwarfCFIEHPrinter.h33 using Elf_Phdr = typename ELFT::Phdr;
70 for (const Elf_Phdr &Phdr : *PhdrsOrErr) { in printUnwindInformation()
71 if (Phdr.p_type != ELF::PT_GNU_EH_FRAME) in printUnwindInformation()
74 if (Phdr.p_memsz != Phdr.p_filesz) in printUnwindInformation()
78 printEHFrameHdr(&Phdr); in printUnwindInformation()
DELFDumper.cpp1712 std::pair<const typename ELFT::Phdr *, const typename ELFT::Shdr *>
1717 for (const Elf_Phdr &Phdr : *PhdrsOrErr) { in findDynamic()
1718 if (Phdr.p_type != ELF::PT_DYNAMIC) in findDynamic()
1720 DynamicPhdr = &Phdr; in findDynamic()
4234 static bool checkTLSSections(const typename ELFT::Phdr &Phdr, in checkTLSSections() argument
4239 return Phdr.p_type == ELF::PT_TLS; in checkTLSSections()
4243 return (Phdr.p_type == ELF::PT_TLS) || (Phdr.p_type == ELF::PT_LOAD) || in checkTLSSections()
4244 (Phdr.p_type == ELF::PT_GNU_RELRO); in checkTLSSections()
4248 return Phdr.p_type != ELF::PT_TLS; in checkTLSSections()
4252 static bool checkOffsets(const typename ELFT::Phdr &Phdr, in checkOffsets() argument
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/hwasan/
Dhwasan_globals.cpp27 static void CheckCodeModel(ElfW(Addr) base, const ElfW(Phdr) * phdr, in CheckCodeModel()
51 const ElfW(Phdr) * phdr, in HwasanGlobalsFor()
Dhwasan_interface_internal.h30 void __hwasan_library_loaded(ElfW(Addr) base, const ElfW(Phdr) * phdr,
34 void __hwasan_library_unloaded(ElfW(Addr) base, const ElfW(Phdr) * phdr,
Dhwasan_globals.h44 const ElfW(Phdr) * phdr,
Dhwasan.cpp335 reinterpret_cast<const ElfW(Phdr) *>( in __hwasan_init_static()
413 void __hwasan_library_loaded(ElfW(Addr) base, const ElfW(Phdr) * phdr, in __hwasan_library_loaded()
419 void __hwasan_library_unloaded(ElfW(Addr) base, const ElfW(Phdr) * phdr, in __hwasan_library_unloaded()
Dhwasan_report.cpp281 auto *phdr_begin = reinterpret_cast<const ElfW(Phdr) *>( in GetGlobalSizeFromDescriptor()
290 ArrayRef<const ElfW(Phdr)>(phdr_begin, phdr_begin + ehdr->e_phnum)) { in GetGlobalSizeFromDescriptor()
/openbsd/src/gnu/llvm/llvm/tools/obj2yaml/
Delf2yaml.cpp441 const typename ELFT::Phdr &Phdr) { in isInSegment() argument
448 SHdr.sh_offset >= Phdr.p_offset && in isInSegment()
449 (SHdr.sh_offset + SHdr.sh_size <= Phdr.p_offset + Phdr.p_filesz); in isInSegment()
451 bool VirtualAddressesMatch = SHdr.sh_addr >= Phdr.p_vaddr && in isInSegment()
452 SHdr.sh_addr <= Phdr.p_vaddr + Phdr.p_memsz; in isInSegment()
458 if (SHdr.sh_size == 0 && (SHdr.sh_offset == Phdr.p_offset || in isInSegment()
459 SHdr.sh_offset == Phdr.p_offset + Phdr.p_filesz)) in isInSegment()
481 for (const typename ELFT::Phdr &Phdr : *PhdrsOrErr) { in dumpProgramHeaders()
483 PH.Type = Phdr.p_type; in dumpProgramHeaders()
484 PH.Flags = Phdr.p_flags; in dumpProgramHeaders()
[all …]
/openbsd/src/gnu/gcc/gcc/
Dunwind-dw2-fde-glibc.c94 const ElfW(Phdr) *p_eh_frame_hdr;
95 const ElfW(Phdr) *p_dynamic;
130 const ElfW(Phdr) *phdr, *p_eh_frame_hdr, *p_dynamic; in _Unwind_IteratePhdrCallback()
146 const ElfW(Phdr) *dlpi_phdr; in _Unwind_IteratePhdrCallback()
/openbsd/src/gnu/llvm/llvm/tools/llvm-gsymutil/
Dllvm-gsymutil.cpp197 for (const typename ELFT::Phdr &Phdr : *PhdrRangeOrErr) in getImageBaseAddress()
198 if (Phdr.p_type == ELF::PT_LOAD) in getImageBaseAddress()
199 return (uint64_t)Phdr.p_vaddr; in getImageBaseAddress()
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_solaris.h44 const ElfW(Phdr) * dlpi_phdr;
Dsanitizer_platform_limits_solaris.cpp123 unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
/openbsd/src/gnu/llvm/compiler-rt/lib/profile/
DInstrProfilingPlatformLinux.c179 const ElfW(Phdr) *ProgramHeader = in __llvm_write_binary_ids()
180 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()
/openbsd/src/gnu/llvm/llvm/lib/ObjectYAML/
DELFYAML.cpp1112 IO &IO, ELFYAML::ProgramHeader &Phdr) { in mapping() argument
1113 IO.mapRequired("Type", Phdr.Type); in mapping()
1114 IO.mapOptional("Flags", Phdr.Flags, ELFYAML::ELF_PF(0)); in mapping()
1115 IO.mapOptional("FirstSec", Phdr.FirstSec); in mapping()
1116 IO.mapOptional("LastSec", Phdr.LastSec); in mapping()
1117 IO.mapOptional("VAddr", Phdr.VAddr, Hex64(0)); in mapping()
1118 IO.mapOptional("PAddr", Phdr.PAddr, Phdr.VAddr); in mapping()
1119 IO.mapOptional("Align", Phdr.Align); in mapping()
1120 IO.mapOptional("FileSize", Phdr.FileSize); in mapping()
1121 IO.mapOptional("MemSize", Phdr.MemSize); in mapping()
[all …]
DELFEmitter.cpp239 getPhdrFragments(const ELFYAML::ProgramHeader &Phdr,
546 Elf_Phdr Phdr; in initProgramHeaders() local
547 zero(Phdr); in initProgramHeaders()
548 Phdr.p_type = YamlPhdr.Type; in initProgramHeaders()
549 Phdr.p_flags = YamlPhdr.Flags; in initProgramHeaders()
550 Phdr.p_vaddr = YamlPhdr.VAddr; in initProgramHeaders()
551 Phdr.p_paddr = YamlPhdr.PAddr; in initProgramHeaders()
552 PHeaders.push_back(Phdr); in initProgramHeaders()
1147 ELFState<ELFT>::getPhdrFragments(const ELFYAML::ProgramHeader &Phdr, in getPhdrFragments() argument
1150 for (const ELFYAML::Chunk *C : Phdr.Chunks) { in getPhdrFragments()
/openbsd/src/gnu/llvm/compiler-rt/lib/lsan/
Dlsan_common_linux.cpp83 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]); in ProcessGlobalRegionsCallback()
/openbsd/src/lib/libelf/
Dlibelf_align.c73 [ELF_T_PHDR] = MALIGN(Phdr),
Delf_types.m450 `PHDR, Phdr',
/openbsd/src/gnu/usr.bin/gcc/gcc/
Dunwind-dw2-fde-glibc.c110 const ElfW(Phdr) *phdr, *p_eh_frame_hdr, *p_dynamic; in _Unwind_IteratePhdrCallback()
/openbsd/src/gnu/llvm/compiler-rt/lib/cfi/
Dcfi.cpp26 typedef ElfW(Phdr) Elf_Phdr;
/openbsd/src/gnu/llvm/libunwind/src/
DAddressSpace.hpp431 typedef ElfW(Phdr) Elf_Phdr;

12