| /freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| HD | ELFDump.cpp | 141 for (const typename ELFT::Phdr &Phdr : *PhdrRangeOrErr) in getSectionLMA() 142 if ((Phdr.p_type == ELF::PT_LOAD) && (Phdr.p_vaddr <= Sec.getAddress()) && in getSectionLMA() 143 (Phdr.p_vaddr + Phdr.p_memsz > Sec.getAddress())) in getSectionLMA() 144 return Sec.getAddress() - Phdr.p_vaddr + Phdr.p_paddr; in getSectionLMA() 196 for (const typename ELFT::Phdr &Phdr : *ProgramHeaderOrError) { in printProgramHeaders() 197 switch (Phdr.p_type) { in printProgramHeaders() 243 outs() << "off " << format(Fmt, (uint64_t)Phdr.p_offset) << "vaddr " in printProgramHeaders() 244 << format(Fmt, (uint64_t)Phdr.p_vaddr) << "paddr " in printProgramHeaders() 245 << format(Fmt, (uint64_t)Phdr.p_paddr) in printProgramHeaders() 247 countTrailingZeros<uint64_t>(Phdr.p_align)) in printProgramHeaders() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Object/ |
| HD | ELF.cpp | 508 for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) { in dynamicEntries() 509 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries() 511 reinterpret_cast<const Elf_Dyn *>(base() + Phdr.p_offset), in dynamicEntries() 512 Phdr.p_filesz / sizeof(Elf_Dyn)); in dynamicEntries() 513 DynSecSize = Phdr.p_filesz; in dynamicEntries() 564 for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) in toMappedAddr() 565 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr() 566 LoadSegments.push_back(const_cast<Elf_Phdr *>(&Phdr)); in toMappedAddr() 570 [](uint64_t VAddr, const Elf_Phdr_Impl<ELFT> *Phdr) { in toMappedAddr() argument 571 return VAddr < Phdr->p_vaddr; in toMappedAddr() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| HD | DwarfCFIEHPrinter.h | 63 const typename ELFT::Phdr *EHFramePhdr = nullptr; in printUnwindInformation() 69 for (const auto &Phdr : *PHs) { in printUnwindInformation() 70 if (Phdr.p_type == ELF::PT_GNU_EH_FRAME) { in printUnwindInformation() 71 EHFramePhdr = &Phdr; in printUnwindInformation() 72 if (Phdr.p_memsz != Phdr.p_filesz) in printUnwindInformation()
|
| HD | ELFDumper.cpp | 100 using Elf_Phdr = typename ELFT::Phdr; \ 868 bool checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec); 869 bool checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec); 870 bool checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec); 871 bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec); 1785 std::pair<const typename ELFT::Phdr *, const typename ELFT::Shdr *> 1789 for (const Elf_Phdr &Phdr : in findDynamic() local 1791 if (Phdr.p_type != ELF::PT_DYNAMIC) in findDynamic() 1793 DynamicPhdr = &Phdr; in findDynamic() 3786 bool GNUStyle<ELFT>::checkTLSSections(const Elf_Phdr &Phdr, in checkTLSSections() argument [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Object/ |
| HD | ELF.h | 80 using Elf_Phdr = typename ELFT::Phdr; 217 Elf_Note_Iterator notes_begin(const Elf_Phdr &Phdr, Error &Err) const { in notes_begin() argument 218 assert(Phdr.p_type == ELF::PT_NOTE && "Phdr is not of type PT_NOTE"); in notes_begin() 220 if (Phdr.p_offset + Phdr.p_filesz > getBufSize()) { in notes_begin() 222 Twine::utohexstr(Phdr.p_offset) + ") or size (0x" + in notes_begin() 223 Twine::utohexstr(Phdr.p_filesz) + ")"); in notes_begin() 226 return Elf_Note_Iterator(base() + Phdr.p_offset, Phdr.p_filesz, Err); in notes_begin() 261 iterator_range<Elf_Note_Iterator> notes(const Elf_Phdr &Phdr, in notes() argument 263 return make_range(notes_begin(Phdr, Err), notes_end()); in notes()
|
| HD | ELFTypes.h | 61 using Phdr = Elf_Phdr_Impl<ELFType<E, Is64>>; member 83 using PhdrRange = ArrayRef<Phdr>;
|
| /freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/ |
| HD | Object.cpp | 42 Elf_Phdr &Phdr = *reinterpret_cast<Elf_Phdr *>(B); in writePhdr() local 43 Phdr.p_type = Seg.Type; in writePhdr() 44 Phdr.p_flags = Seg.Flags; in writePhdr() 45 Phdr.p_offset = Seg.Offset; in writePhdr() 46 Phdr.p_vaddr = Seg.VAddr; in writePhdr() 47 Phdr.p_paddr = Seg.PAddr; in writePhdr() 48 Phdr.p_filesz = Seg.FileSize; in writePhdr() 49 Phdr.p_memsz = Seg.MemSize; in writePhdr() 50 Phdr.p_align = Seg.Align; in writePhdr() 1273 for (const auto &Phdr : unwrapOrError(HeadersFile.program_headers())) { in readProgramHeaders() local [all …]
|
| HD | ELFObjcopy.cpp | 174 for (const auto &Phdr : *PhdrsOrErr) { in findBuildID() 175 if (Phdr.p_type != PT_NOTE) in findBuildID() 178 for (auto Note : In.notes(Phdr, Err)) in findBuildID()
|
| HD | Object.h | 321 using Elf_Phdr = typename ELFT::Phdr;
|
| /freebsd-11-stable/contrib/gcc/ |
| HD | unwind-dw2-fde-glibc.c | 94 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()
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| HD | hwasan.cpp | 246 static void CheckCodeModel(ElfW(Addr) base, const ElfW(Phdr) * phdr, in CheckCodeModel() 269 static void InitGlobalsFromPhdrs(ElfW(Addr) base, const ElfW(Phdr) * phdr, in InitGlobalsFromPhdrs() 348 reinterpret_cast<const ElfW(Phdr) *>( in __hwasan_init_static() 409 void __hwasan_library_loaded(ElfW(Addr) base, const ElfW(Phdr) * phdr, in __hwasan_library_loaded() 414 void __hwasan_library_unloaded(ElfW(Addr) base, const ElfW(Phdr) * phdr, in __hwasan_library_unloaded()
|
| HD | hwasan_interface_internal.h | 30 void __hwasan_library_loaded(ElfW(Addr) base, const ElfW(Phdr) * phdr, 34 void __hwasan_library_unloaded(ElfW(Addr) base, const ElfW(Phdr) * phdr,
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| HD | ELFEmitter.cpp | 106 typedef typename ELFT::Phdr Elf_Phdr; 158 getPhdrFragments(const ELFYAML::ProgramHeader &Phdr, 315 Elf_Phdr Phdr; in initProgramHeaders() local 316 Phdr.p_type = YamlPhdr.Type; in initProgramHeaders() 317 Phdr.p_flags = YamlPhdr.Flags; in initProgramHeaders() 318 Phdr.p_vaddr = YamlPhdr.VAddr; in initProgramHeaders() 319 Phdr.p_paddr = YamlPhdr.PAddr; in initProgramHeaders() 320 PHeaders.push_back(Phdr); in initProgramHeaders() 688 ELFState<ELFT>::getPhdrFragments(const ELFYAML::ProgramHeader &Phdr, in getPhdrFragments() argument 696 for (const ELFYAML::SectionName &SecName : Phdr.Sections) { in getPhdrFragments()
|
| HD | ELFYAML.cpp | 841 IO &IO, ELFYAML::ProgramHeader &Phdr) { in mapping() argument 842 IO.mapRequired("Type", Phdr.Type); in mapping() 843 IO.mapOptional("Flags", Phdr.Flags, ELFYAML::ELF_PF(0)); in mapping() 844 IO.mapOptional("Sections", Phdr.Sections); in mapping() 845 IO.mapOptional("VAddr", Phdr.VAddr, Hex64(0)); in mapping() 846 IO.mapOptional("PAddr", Phdr.PAddr, Hex64(0)); in mapping() 847 IO.mapOptional("Align", Phdr.Align); in mapping() 848 IO.mapOptional("FileSize", Phdr.FileSize); in mapping() 849 IO.mapOptional("MemSize", Phdr.MemSize); in mapping() 850 IO.mapOptional("Offset", Phdr.Offset); in mapping()
|
| /freebsd-11-stable/sys/sys/ |
| HD | elf_generic.h | 68 __ElfType(Phdr);
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/lsan/ |
| HD | lsan_common_linux.cpp | 83 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]); in ProcessGlobalRegionsCallback()
|
| /freebsd-11-stable/contrib/elftoolchain/libelf/ |
| HD | libelf_align.c | 73 [ELF_T_PHDR] = MALIGN(Phdr),
|
| HD | elf_types.m4 | 50 `PHDR, Phdr',
|
| /freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
| HD | elf.h | 40 __sElfN(Phdr);
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_platform_limits_solaris.cpp | 122 unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
|
| HD | sanitizer_linux_libcdep.cpp | 524 typedef ElfW(Phdr) Elf_Phdr;
|
| HD | sanitizer_platform_limits_posix.cpp | 295 unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/cfi/ |
| HD | cfi.cpp | 26 typedef ElfW(Phdr) Elf_Phdr;
|
| /freebsd-11-stable/contrib/llvm-project/libunwind/src/ |
| HD | AddressSpace.hpp | 510 typedef ElfW(Phdr) Elf_Phdr; in findUnwindSections()
|
| /freebsd-11-stable/contrib/llvm-project/lld/ELF/ |
| HD | SyntheticSections.cpp | 3637 eHdr->e_phentsize = sizeof(typename ELFT::Phdr); in writeEhdr() 3643 auto *hBuf = reinterpret_cast<typename ELFT::Phdr *>(buf); in writePhdrs() 3681 return sizeof(typename ELFT::Phdr) * getPartition().phdrs.size(); in getSize()
|