Home
last modified time | relevance | path

Searched refs:Nhdr (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingPlatformLinux.c131 const ElfW(Nhdr) * Note) { in WriteBinaryIdForNote()
133 const char *NoteName = (const char *)Note + sizeof(ElfW(Nhdr)); in WriteBinaryIdForNote()
156 static int WriteBinaryIds(ProfDataWriter *Writer, const ElfW(Nhdr) * Note, in WriteBinaryIds()
157 const ElfW(Nhdr) * NotesEnd) { in WriteBinaryIds()
166 size_t NoteOffset = sizeof(ElfW(Nhdr)) + RoundUp(Note->n_namesz, 4) + in WriteBinaryIds()
168 Note = (const ElfW(Nhdr) *)((const char *)(Note) + NoteOffset); in WriteBinaryIds()
194 const ElfW(Nhdr) * Note; in __llvm_write_binary_ids()
195 const ElfW(Nhdr) * NotesEnd; in __llvm_write_binary_ids()
202 Note = (const ElfW(Nhdr) *)((uintptr_t)ElfHeader + in __llvm_write_binary_ids()
204 NotesEnd = (const ElfW(Nhdr) *)((const char *)(Note) + in __llvm_write_binary_ids()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFTypes.h76 using Nhdr = Elf_Nhdr_Impl<ELFType<E, Is64>>; member
132 using Elf_Nhdr = typename ELFT::Nhdr; \
646 const Elf_Nhdr_Impl<ELFT> &Nhdr;
651 Elf_Note_Impl(const Elf_Nhdr_Impl<ELFT> &Nhdr) : Nhdr(Nhdr) {}
655 if (!Nhdr.n_namesz)
657 return StringRef(reinterpret_cast<const char *>(&Nhdr) + sizeof(Nhdr),
658 Nhdr.n_namesz - 1);
663 if (!Nhdr.n_descsz)
666 reinterpret_cast<const uint8_t *>(&Nhdr) +
667 alignToPowerOf2(sizeof(Nhdr) + Nhdr.n_namesz, Align),
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_globals.cpp65 auto *nhdr = reinterpret_cast<const ElfW(Nhdr) *>(note); in HwasanGlobalsFor()
66 const char *name = note + sizeof(ElfW(Nhdr)); in HwasanGlobalsFor()
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_align.c71 [ELF_T_NOTE] = MALIGN(Nhdr),
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_libcdep.cpp679 while (off + sizeof(ElfW(Nhdr)) < phdr->p_memsz) { in AddModuleSegments()
680 auto *nhdr = reinterpret_cast<const ElfW(Nhdr) *>(info->dlpi_addr + in AddModuleSegments()
685 if (off + sizeof(ElfW(Nhdr)) + nhdr->n_namesz + nhdr->n_descsz > in AddModuleSegments()
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp958 using Elf_Nhdr = typename ELFT::Nhdr; in readGnuProperty()