| /linux/arch/loongarch/kernel/ |
| H A D | module-sections.c | 23 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry() 53 plt = (struct plt_entry *)sechdrs[plt_sec->shndx].sh_addr; in module_emit_plt_entry() 55 plt_idx = (struct plt_idx_entry *)sechdrs[plt_idx_sec->shndx].sh_addr; in module_emit_plt_entry() 116 mod->arch.got.shndx = i; in module_frob_arch_sections() 118 mod->arch.plt.shndx = i; in module_frob_arch_sections() 120 mod->arch.plt_idx.shndx = i; in module_frob_arch_sections() 125 if (!mod->arch.got.shndx) { in module_frob_arch_sections() 129 if (!mod->arch.plt.shndx) { in module_frob_arch_sections() 133 if (!mod->arch.plt_idx.shndx) { in module_frob_arch_sections() 154 got_sec = sechdrs + mod->arch.got.shndx; in module_frob_arch_sections() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | module.h | 15 int shndx; member 89 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr; in get_plt_idx() 105 struct plt_entry *plt = (struct plt_entry *)sechdrs[sec_plt->shndx].sh_addr; in get_plt_entry() 118 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr; in get_got_entry()
|
| /linux/tools/perf/util/ |
| H A D | debuginfo.c | 153 Elf32_Word shndx; in debuginfo__get_text_offset() 169 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset() 172 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset() 154 Elf32_Word shndx; debuginfo__get_text_offset() local
|
| H A D | symbol-elf.c | 1074 size_t shndx; in read_gnu_debugdata() 1084 scn = elf_section_by_name(elf, &ehdr, &shdr, ".gnu_debugdata", &shndx); in read_gnu_debugdata() 1076 size_t shndx; read_gnu_debugdata() local
|
| /linux/scripts/ |
| H A D | recordmcount.h | 195 unsigned short shndx = w2(sym->st_shndx); in get_symindex() local 198 if (shndx > SHN_UNDEF && shndx < SHN_LORESERVE) in get_symindex() 199 return shndx; in get_symindex() 201 if (shndx == SHN_XINDEX) { in get_symindex()
|
| H A D | sorttable.c | 80 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument 84 if (is_shndx_special(shndx)) in get_secindex() 85 return SPECIAL(shndx); in get_secindex() 86 if (shndx != SHN_XINDEX) in get_secindex() 87 return shndx; in get_secindex()
|
| H A D | elf-parse.h | 216 SYM_HALF(shndx) in SYM_WORD()
|
| /linux/arch/mips/boot/tools/ |
| H A D | relocs.c | 92 static const char *sec_name(unsigned shndx) in sec_name() argument 98 if (shndx < ehdr.e_shnum) in sec_name() 99 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name() 100 else if (shndx == SHN_ABS) in sec_name() 102 else if (shndx == SHN_COMMON) in sec_name()
|
| /linux/tools/objtool/ |
| H A D | elf.c | 599 Elf32_Word shndx; in read_symbols() local 636 &shndx)) { in read_symbols() 652 shndx = sym->sym.st_shndx; in read_symbols() 654 sym->sec = find_section_by_index(elf, shndx); in read_symbols() 787 Elf32_Word shndx; in elf_update_symbol() local 795 shndx = is_special_shndx ? sym->sym.st_shndx : sym->sec->idx; in elf_update_symbol() 893 if (shndx < SHN_LORESERVE || is_special_shndx) { in elf_update_symbol() 894 sym->sym.st_shndx = shndx; in elf_update_symbol() 896 shndx = 0; in elf_update_symbol() 905 if (!gelf_update_symshndx(symtab_data, shndx_data, idx, &sym->sym, shndx)) { in elf_update_symbol()
|
| /linux/arch/x86/tools/ |
| H A D | relocs.c | 260 static const char *sec_name(unsigned shndx) in sec_name() argument 267 if (shndx < shnum) in sec_name() 268 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name() 269 else if (shndx == SHN_ABS) in sec_name() 271 else if (shndx == SHN_COMMON) in sec_name()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 1388 int shndx, Elf_Data *data) in init_struct_ops_maps() argument 1399 if (shndx == -1) in init_struct_ops_maps() 1439 map->sec_idx = shndx; in init_struct_ops_maps() 4536 int shndx) in bpf_prog_compute_hash() 4538 switch (obj->efile.secs[shndx].sec_type) { in bpf_prog_compute_hash() 4549 int shndx) in bpf_prog_compute_hash() 4551 return shndx == obj->efile.btf_maps_shndx; in bpf_prog_compute_hash() 4555 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_prog_compute_hash() 4557 if (shndx == obj->efile.symbols_shndx) in bpf_prog_compute_hash() 4560 switch (obj->efile.secs[shndx] in bpf_prog_compute_hash() 4490 bpf_object__shndx_is_data(const struct bpf_object * obj,int shndx) bpf_object__shndx_is_data() argument 4503 bpf_object__shndx_is_maps(const struct bpf_object * obj,int shndx) bpf_object__shndx_is_maps() argument 4509 bpf_object__section_to_libbpf_map_type(const struct bpf_object * obj,int shndx) bpf_object__section_to_libbpf_map_type() argument [all...] |