Searched refs:nhdr (Results 1 – 3 of 3) sorted by relevance
188 static Elf64_Nhdr *next_note(Elf64_Nhdr *nhdr) in next_note() argument190 return (void *) nhdr + sizeof(*nhdr) + in next_note()191 __ALIGN_KERNEL(nhdr->n_namesz, 4) + in next_note()192 __ALIGN_KERNEL(nhdr->n_descsz, 4); in next_note()200 Elf64_Nhdr *nhdr; in check_core_file() local232 for (nhdr = p + phdr->p_offset; in check_core_file()233 (void *) nhdr < p + phdr->p_offset + phdr->p_filesz; in check_core_file()234 nhdr = next_note(nhdr)) in check_core_file()235 if (nhdr->n_type == NT_PPC_PKEY) in check_core_file()238 FAIL_IF((void *) nhdr >= p + phdr->p_offset + phdr->p_filesz); in check_core_file()[all …]
41 } *nhdr; in read_build_id() local49 nhdr = ptr; in read_build_id()51 nhdr->n_namesz = bswap_32(nhdr->n_namesz); in read_build_id()52 nhdr->n_descsz = bswap_32(nhdr->n_descsz); in read_build_id()53 nhdr->n_type = bswap_32(nhdr->n_type); in read_build_id()56 namesz = NOTE_ALIGN(nhdr->n_namesz); in read_build_id()57 descsz = NOTE_ALIGN(nhdr->n_descsz); in read_build_id()59 ptr += sizeof(*nhdr); in read_build_id()62 if (nhdr->n_type == NT_GNU_BUILD_ID && in read_build_id()63 nhdr->n_namesz == sizeof("GNU")) { in read_build_id()
508 GElf_Nhdr *nhdr = ptr; in elf_read_build_id() local509 size_t namesz = NOTE_ALIGN(nhdr->n_namesz), in elf_read_build_id()510 descsz = NOTE_ALIGN(nhdr->n_descsz); in elf_read_build_id()513 ptr += sizeof(*nhdr); in elf_read_build_id()516 if (nhdr->n_type == NT_GNU_BUILD_ID && in elf_read_build_id()517 nhdr->n_namesz == sizeof("GNU")) { in elf_read_build_id()573 GElf_Nhdr nhdr; in sysfs__read_build_id() local576 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) in sysfs__read_build_id()579 namesz = NOTE_ALIGN(nhdr.n_namesz); in sysfs__read_build_id()580 descsz = NOTE_ALIGN(nhdr.n_descsz); in sysfs__read_build_id()[all …]