Home
last modified time | relevance | path

Searched refs:shndx (Results 1 – 10 of 10) sorted by relevance

/linux/arch/loongarch/kernel/
H A Dmodule-sections.c23 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()
114 mod->arch.got.shndx = i; in module_frob_arch_sections()
116 mod->arch.plt.shndx = i; in module_frob_arch_sections()
118 mod->arch.plt_idx.shndx = i; in module_frob_arch_sections()
123 if (!mod->arch.got.shndx) { in module_frob_arch_sections()
127 if (!mod->arch.plt.shndx) { in module_frob_arch_sections()
131 if (!mod->arch.plt_idx.shndx) { in module_frob_arch_sections()
152 got_sec = sechdrs + mod->arch.got.shndx; in module_frob_arch_sections()
[all …]
/linux/arch/loongarch/include/asm/
H A Dmodule.h15 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 Ddebuginfo.c156 Elf32_Word shndx; in debuginfo__get_text_offset()
172 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
175 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
154 Elf32_Word shndx; debuginfo__get_text_offset() local
H A Dsymbol-elf.c1109 size_t shndx; in read_gnu_debugdata()
1119 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 Drecordmcount.h195 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 Dsorttable.c80 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 Delf-parse.h216 SYM_HALF(shndx) in SYM_WORD()
/linux/arch/mips/boot/tools/
H A Drelocs.c92 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 Delf.c581 Elf32_Word shndx; in elf_add_symbol()
618 &shndx)) { in read_symbols()
646 shndx = sym->sym.st_shndx; in read_symbols()
648 sym->sec = find_section_by_index(elf, shndx); in read_symbols()
781 Elf32_Word shndx;
789 shndx = is_special_shndx ? sym->sym.st_shndx : sym->sec->idx; in elf_update_symbol()
887 if (shndx < SHN_LORESERVE || is_special_shndx) { in elf_update_symbol()
888 sym->sym.st_shndx = shndx; in elf_update_symbol()
890 shndx = 0; in elf_update_symbol()
899 if (!gelf_update_symshndx(symtab_data, shndx_data, idx, &sym->sym, shndx)) { in elf_update_symbol()
599 Elf32_Word shndx; read_symbols() local
787 Elf32_Word shndx; elf_update_symbol() local
[all...]
/linux/tools/lib/bpf/
H A Dlibbpf.c1396 int shndx, Elf_Data *data) in init_struct_ops_maps() argument
1407 if (shndx == -1) in init_struct_ops_maps()
1447 map->sec_idx = shndx; in init_struct_ops_maps()
4570 int shndx) in bpf_object__shndx_is_data() argument
4572 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__shndx_is_data()
4584 int shndx) in bpf_object__shndx_is_maps() argument
4586 return shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()
4590 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument
4592 if (shndx == obj->efile.symbols_shndx) in bpf_object__section_to_libbpf_map_type()
4595 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__section_to_libbpf_map_type()