Home
last modified time | relevance | path

Searched refs:nhdr (Results 1 – 8 of 8) sorted by relevance

/linux/lib/
A Dbuildid.c24 Elf32_Nhdr *nhdr = (Elf32_Nhdr *)(note_start + note_offs); in parse_build_id_buf() local
26 if (nhdr->n_type == BUILD_ID && in parse_build_id_buf()
27 nhdr->n_namesz == sizeof("GNU") && in parse_build_id_buf()
28 !strcmp((char *)(nhdr + 1), "GNU") && in parse_build_id_buf()
29 nhdr->n_descsz > 0 && in parse_build_id_buf()
30 nhdr->n_descsz <= BUILD_ID_SIZE_MAX) { in parse_build_id_buf()
34 nhdr->n_descsz); in parse_build_id_buf()
35 memset(build_id + nhdr->n_descsz, 0, in parse_build_id_buf()
36 BUILD_ID_SIZE_MAX - nhdr->n_descsz); in parse_build_id_buf()
38 *size = nhdr->n_descsz; in parse_build_id_buf()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
A Dcore-pkey.c188 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()
234 nhdr = next_note(nhdr)) in check_core_file()
235 if (nhdr->n_type == NT_PPC_PKEY) in check_core_file()
239 FAIL_IF(nhdr->n_descsz == 0); in check_core_file()
241 p = nhdr; in check_core_file()
[all …]
/linux/tools/perf/util/
A Dsymbol-minimal.c42 } *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()
A Dsymbol-elf.c515 GElf_Nhdr *nhdr = ptr; in elf_read_build_id() local
520 ptr += sizeof(*nhdr); in elf_read_build_id()
647 GElf_Nhdr nhdr; in sysfs__read_build_id() local
650 if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr)) in sysfs__read_build_id()
653 namesz = NOTE_ALIGN(nhdr.n_namesz); in sysfs__read_build_id()
654 descsz = NOTE_ALIGN(nhdr.n_descsz); in sysfs__read_build_id()
655 if (nhdr.n_type == NT_GNU_BUILD_ID && in sysfs__read_build_id()
675 __func__, filename, nhdr.n_namesz, nhdr.n_descsz); in sysfs__read_build_id()
2359 GElf_Nhdr nhdr; in construct_sdt_notes_list() local
2393 if (nhdr.n_type != SDT_NOTE_TYPE) in construct_sdt_notes_list()
[all …]
/linux/scripts/
A Drecordmcount.h237 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()
/linux/fs/
A Dbinfmt_elf.c770 struct elf_note nhdr; in parse_elf_properties() member
794 BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ); in parse_elf_properties()
795 if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ) in parse_elf_properties()
798 if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 || in parse_elf_properties()
799 note.nhdr.n_namesz != NOTE_NAME_SZ || in parse_elf_properties()
800 strncmp(note.data + sizeof(note.nhdr), in parse_elf_properties()
801 GNU_PROPERTY_TYPE_0_NAME, n - sizeof(note.nhdr))) in parse_elf_properties()
804 off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ, in parse_elf_properties()
809 if (note.nhdr.n_descsz > n - off) in parse_elf_properties()
811 datasz = off + note.nhdr.n_descsz; in parse_elf_properties()
/linux/include/pcmcia/
A Dcistpl.h504 u_char nhdr; member
/linux/drivers/pcmcia/
A Dcistpl.c1241 v2->nhdr = p[8]; in parse_vers_2()

Completed in 24 milliseconds