Searched refs:nhdr (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 188 static Elf64_Nhdr *next_note(Elf64_Nhdr *nhdr) in next_note() argument 190 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() local 232 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 …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | symbol-minimal.c | 42 } *nhdr; in read_build_id() local 50 nhdr = ptr; in read_build_id() 52 nhdr->n_namesz = bswap_32(nhdr->n_namesz); in read_build_id() 53 nhdr->n_descsz = bswap_32(nhdr->n_descsz); in read_build_id() 54 nhdr->n_type = bswap_32(nhdr->n_type); in read_build_id() 57 namesz = NOTE_ALIGN(nhdr->n_namesz); in read_build_id() 58 descsz = NOTE_ALIGN(nhdr->n_descsz); in read_build_id() 60 ptr += sizeof(*nhdr); in read_build_id() 63 if (nhdr->n_type == NT_GNU_BUILD_ID && in read_build_id() 64 nhdr->n_namesz == sizeof("GNU")) { in read_build_id()
|
D | symbol-elf.c | 537 GElf_Nhdr *nhdr = ptr; in elf_read_build_id() local 538 size_t namesz = NOTE_ALIGN(nhdr->n_namesz), in elf_read_build_id() 539 descsz = NOTE_ALIGN(nhdr->n_descsz); in elf_read_build_id() 542 ptr += sizeof(*nhdr); in elf_read_build_id() 545 if (nhdr->n_type == NT_GNU_BUILD_ID && in elf_read_build_id() 546 nhdr->n_namesz == sizeof("GNU")) { in elf_read_build_id() 636 GElf_Nhdr nhdr; in sysfs__read_build_id() local 639 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) in sysfs__read_build_id() 642 namesz = NOTE_ALIGN(nhdr.n_namesz); in sysfs__read_build_id() 643 descsz = NOTE_ALIGN(nhdr.n_descsz); in sysfs__read_build_id() [all …]
|
/kernel/linux/linux-5.10/scripts/ |
D | recordmcount.h | 237 unsigned const nhdr, Elf32_Word **symtab, in find_symtab() argument 246 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { in find_symtab() 585 unsigned nhdr, in tot_relsize() argument 593 for (; nhdr; --nhdr, ++shdrp) { in tot_relsize() 611 unsigned const nhdr = get_shnum(ehdr, shdr0); in do_func() local 636 totrelsz = tot_relsize(shdr0, nhdr, shstrtab, fname); in do_func() 652 find_symtab(ehdr, shdr0, nhdr, &symtab, &symtab_shndx); in do_func() 654 for (relhdr = shdr0, k = nhdr; k; --k, ++relhdr) { in do_func()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | stackmap.c | 181 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); in stack_map_parse_build_id() local 183 if (nhdr->n_type == BPF_BUILD_ID && in stack_map_parse_build_id() 184 nhdr->n_namesz == sizeof("GNU") && in stack_map_parse_build_id() 185 nhdr->n_descsz > 0 && in stack_map_parse_build_id() 186 nhdr->n_descsz <= BPF_BUILD_ID_SIZE) { in stack_map_parse_build_id() 190 nhdr->n_descsz); in stack_map_parse_build_id() 191 memset(build_id + nhdr->n_descsz, 0, in stack_map_parse_build_id() 192 BPF_BUILD_ID_SIZE - nhdr->n_descsz); in stack_map_parse_build_id() 196 ALIGN(nhdr->n_namesz, 4) + ALIGN(nhdr->n_descsz, 4); in stack_map_parse_build_id()
|
/kernel/linux/linux-5.10/fs/ |
D | binfmt_elf.c | 767 struct elf_note nhdr; in parse_elf_properties() member 791 BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ); in parse_elf_properties() 792 if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ) in parse_elf_properties() 795 if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 || in parse_elf_properties() 796 note.nhdr.n_namesz != NOTE_NAME_SZ || in parse_elf_properties() 797 strncmp(note.data + sizeof(note.nhdr), in parse_elf_properties() 798 GNU_PROPERTY_TYPE_0_NAME, n - sizeof(note.nhdr))) in parse_elf_properties() 801 off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ, in parse_elf_properties() 806 if (note.nhdr.n_descsz > n - off) in parse_elf_properties() 808 datasz = off + note.nhdr.n_descsz; in parse_elf_properties()
|
/kernel/linux/linux-5.10/include/pcmcia/ |
D | cistpl.h | 504 u_char nhdr; member
|
/kernel/linux/linux-5.10/drivers/pcmcia/ |
D | cistpl.c | 1241 v2->nhdr = p[8]; in parse_vers_2()
|