Searched refs:shstrndx (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/arch/s390/tools/ |
D | relocs.c | 43 static unsigned int shstrndx; variable 147 shstrndx = ehdr.e_shstrndx; in read_ehdr() 162 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr() 174 if (shstrndx == SHN_XINDEX) in read_ehdr() 175 shstrndx = elf_word_to_cpu(shdr.sh_link); in read_ehdr() 178 if (shstrndx >= shnum) in read_ehdr()
|
/linux-6.12.1/scripts/ |
D | sorttable.h | 285 unsigned int shstrndx; in do_sort() local 297 shstrndx = r2(&ehdr->e_shstrndx); in do_sort() 298 if (shstrndx == SHN_XINDEX) in do_sort() 299 shstrndx = r(&shdr[0].sh_link); in do_sort() 300 secstrings = (const char *)ehdr + _r(&shdr[shstrndx].sh_offset); in do_sort()
|
/linux-6.12.1/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 102 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr); local 107 shdr = ehdr + elf_size_of_hdr(class) + shstrndx * elf_size_of_shdr(class);
|
D | remoteproc_elf_loader.c | 260 u16 shstrndx = elf_hdr_get_e_shstrndx(class, ehdr); local 266 name_table_shdr = shdr + (shstrndx * elf_shdr_get_size);
|
D | pru_rproc.c | 877 u16 shstrndx = ehdr->e_shstrndx; in pru_rproc_find_interrupt_map() local 883 name_table_shdr = shdr + shstrndx; in pru_rproc_find_interrupt_map()
|
/linux-6.12.1/arch/x86/tools/ |
D | relocs.c | 16 static unsigned int shstrndx; variable 261 sec_strtab = secs[shstrndx].strtab; in sec_name() 400 shstrndx = ehdr.e_shstrndx; in read_ehdr() 416 if (shnum == SHN_UNDEF || shstrndx == SHN_XINDEX) { in read_ehdr() 428 if (shstrndx == SHN_XINDEX) in read_ehdr() 429 shstrndx = elf_word_to_cpu(shdr.sh_link); in read_ehdr() 432 if (shstrndx >= shnum) in read_ehdr()
|
/linux-6.12.1/tools/lib/bpf/ |
D | usdt.c | 360 size_t shstrndx; in find_elf_sec_by_name() local 362 if (elf_getshdrstrndx(elf, &shstrndx)) in find_elf_sec_by_name() 366 if (!elf_rawdata(elf_getscn(elf, shstrndx), NULL)) in find_elf_sec_by_name() 375 name = elf_strptr(elf, shstrndx, shdr->sh_name); in find_elf_sec_by_name()
|
D | btf.c | 1104 size_t shstrndx; in btf_find_elf_sections() local 1112 if (elf_getshdrstrndx(elf, &shstrndx)) { in btf_find_elf_sections() 1118 if (!elf_rawdata(elf_getscn(elf, shstrndx), NULL)) { in btf_find_elf_sections() 1134 name = elf_strptr(elf, shstrndx, sh.sh_name); in btf_find_elf_sections()
|
D | libbpf.c | 658 size_t shstrndx; /* section index for section name strings */ member 1574 if (elf_getshdrstrndx(elf, &obj->efile.shstrndx)) { in bpf_object__elf_init() 1582 if (!elf_rawdata(elf_getscn(elf, obj->efile.shstrndx), NULL)) { in bpf_object__elf_init() 3611 name = elf_strptr(obj->efile.elf, obj->efile.shstrndx, off); in elf_sec_str()
|
/linux-6.12.1/tools/objtool/ |
D | elf.c | 310 size_t shstrndx, sections_nr; in read_sections() local 318 if (elf_getshdrstrndx(elf->elf, &shstrndx)) { in read_sections() 350 sec->name = elf_strptr(elf->elf, shstrndx, sec->sh.sh_name); in read_sections()
|
/linux-6.12.1/tools/perf/util/ |
D | symbol-elf.c | 2864 size_t shstrndx, next; in construct_sdt_notes_list() local 2873 if (elf_getshdrstrndx(elf, &shstrndx) != 0) { in construct_sdt_notes_list()
|