Home
last modified time | relevance | path

Searched refs:shndx (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/arch/loongarch/kernel/
H A Dmodule-sections.c22 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry()
52 plt = (struct plt_entry *)sechdrs[plt_sec->shndx].sh_addr; in module_emit_plt_entry()
54 plt_idx = (struct plt_idx_entry *)sechdrs[plt_idx_sec->shndx].sh_addr; in module_emit_plt_entry()
115 mod->arch.got.shndx = i; in module_frob_arch_sections()
117 mod->arch.plt.shndx = i; in module_frob_arch_sections()
119 mod->arch.plt_idx.shndx = i; in module_frob_arch_sections()
124 if (!mod->arch.got.shndx) { in module_frob_arch_sections()
128 if (!mod->arch.plt.shndx) { in module_frob_arch_sections()
132 if (!mod->arch.plt_idx.shndx) { in module_frob_arch_sections()
153 got_sec = sechdrs + mod->arch.got.shndx; in module_frob_arch_sections()
[all...]
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dmodule-sections.c22 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry()
52 plt = (struct plt_entry *)sechdrs[plt_sec->shndx].sh_addr; in module_emit_plt_entry()
54 plt_idx = (struct plt_idx_entry *)sechdrs[plt_idx_sec->shndx].sh_addr; in module_emit_plt_entry()
115 mod->arch.got.shndx = i; in module_frob_arch_sections()
117 mod->arch.plt.shndx = i; in module_frob_arch_sections()
119 mod->arch.plt_idx.shndx = i; in module_frob_arch_sections()
124 if (!mod->arch.got.shndx) { in module_frob_arch_sections()
128 if (!mod->arch.plt.shndx) { in module_frob_arch_sections()
132 if (!mod->arch.plt_idx.shndx) { in module_frob_arch_sections()
153 got_sec = sechdrs + mod->arch.got.shndx; in module_frob_arch_sections()
[all...]
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dmodule.h15 int shndx; member
77 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr; in get_plt_idx()
93 struct plt_entry *plt = (struct plt_entry *)sechdrs[sec_plt->shndx].sh_addr; in get_plt_entry()
106 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr; in get_got_entry()
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dmodule.h14 int shndx; member
71 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr; in get_plt_idx()
87 struct plt_entry *plt = (struct plt_entry *)sechdrs[sec_plt->shndx].sh_addr; in get_plt_entry()
100 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr; in get_got_entry()
/kernel/linux/linux-5.10/scripts/
H A Dsorttable.c181 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument
185 if (is_shndx_special(shndx)) in get_secindex()
186 return SPECIAL(shndx); in get_secindex()
187 if (shndx != SHN_XINDEX) in get_secindex()
188 return shndx; in get_secindex()
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()
/kernel/linux/linux-6.6/scripts/
H A Dsorttable.c187 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument
191 if (is_shndx_special(shndx)) in get_secindex()
192 return SPECIAL(shndx); in get_secindex()
193 if (shndx != SHN_XINDEX) in get_secindex()
194 return shndx; in get_secindex()
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()
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/
H A Drelocs.c101 static const char *sec_name(unsigned shndx) in sec_name() argument
107 if (shndx < ehdr.e_shnum) in sec_name()
108 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
109 else if (shndx == SHN_ABS) in sec_name()
111 else if (shndx == SHN_COMMON) in sec_name()
/kernel/linux/linux-5.10/tools/objtool/
H A Delf.c382 Elf32_Word shndx; in read_symbols() local
410 &shndx)) { in read_symbols()
426 shndx = sym->sym.st_shndx; in read_symbols()
428 sym->sec = find_section_by_index(elf, shndx); in read_symbols()
576 Elf32_Word shndx = sym->sec ? sym->sec->idx : SHN_UNDEF; in elf_update_symbol() local
585 shndx = sym->sym.st_shndx; in elf_update_symbol()
671 if ((shndx >= SHN_UNDEF && shndx < SHN_LORESERVE) || is_special_shndx) { in elf_update_symbol()
672 sym->sym.st_shndx = shndx; in elf_update_symbol()
674 shndx in elf_update_symbol()
[all...]
/kernel/linux/linux-6.6/tools/objtool/
H A Delf.c442 Elf32_Word shndx; in read_symbols() local
476 &shndx)) { in read_symbols()
492 shndx = sym->sym.st_shndx; in read_symbols()
494 sym->sec = find_section_by_index(elf, shndx); in read_symbols()
600 Elf32_Word shndx = sym->sec ? sym->sec->idx : SHN_UNDEF; in elf_update_symbol() local
609 shndx = sym->sym.st_shndx; in elf_update_symbol()
707 if ((shndx >= SHN_UNDEF && shndx < SHN_LORESERVE) || is_special_shndx) { in elf_update_symbol()
708 sym->sym.st_shndx = shndx; in elf_update_symbol()
710 shndx in elf_update_symbol()
[all...]
/kernel/linux/linux-6.6/arch/x86/tools/
H A Drelocs.c253 static const char *sec_name(unsigned shndx) in sec_name() argument
259 if (shndx < shnum) { in sec_name()
260 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
262 else if (shndx == SHN_ABS) { in sec_name()
265 else if (shndx == SHN_COMMON) { in sec_name()
827 int shndx = sym_index(sym); in ElfW() local
829 return (shndx == per_cpu_shndx) && in ElfW()
/kernel/linux/linux-5.10/arch/mips/boot/tools/
H A Drelocs.c91 static const char *sec_name(unsigned shndx) in sec_name() argument
97 if (shndx < ehdr.e_shnum) in sec_name()
98 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
99 else if (shndx == SHN_ABS) in sec_name()
101 else if (shndx == SHN_COMMON) in sec_name()
/kernel/linux/linux-6.6/arch/mips/boot/tools/
H A Drelocs.c91 static const char *sec_name(unsigned shndx) in sec_name() argument
97 if (shndx < ehdr.e_shnum) in sec_name()
98 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
99 else if (shndx == SHN_ABS) in sec_name()
101 else if (shndx == SHN_COMMON) in sec_name()
/kernel/linux/linux-5.10/arch/x86/tools/
H A Drelocs.c242 static const char *sec_name(unsigned shndx) in sec_name() argument
248 if (shndx < shnum) { in sec_name()
249 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
251 else if (shndx == SHN_ABS) { in sec_name()
254 else if (shndx == SHN_COMMON) { in sec_name()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dprobe-finder.c1669 Elf32_Word shndx; in debuginfo__get_text_offset() local
1685 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
1688 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dprobe-finder.c1685 Elf32_Word shndx; in debuginfo__get_text_offset() local
1701 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
1704 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf.c3306 int shndx) in bpf_object__shndx_is_data()
3308 return shndx == obj->efile.data_shndx || in bpf_object__shndx_is_data()
3309 shndx == obj->efile.bss_shndx || in bpf_object__shndx_is_data()
3310 shndx == obj->efile.rodata_shndx; in bpf_object__shndx_is_data()
3314 int shndx) in bpf_object__shndx_is_maps()
3316 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps()
3317 shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()
3321 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument
3323 if (shndx == obj->efile.data_shndx) in bpf_object__section_to_libbpf_map_type()
3325 else if (shndx in bpf_object__section_to_libbpf_map_type()
3305 bpf_object__shndx_is_data(const struct bpf_object *obj, int shndx) bpf_object__shndx_is_data() argument
3313 bpf_object__shndx_is_maps(const struct bpf_object *obj, int shndx) bpf_object__shndx_is_maps() argument
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf.c1142 int shndx, Elf_Data *data, __u32 map_flags) in init_struct_ops_maps()
1153 if (shndx == -1) in init_struct_ops_maps()
1193 map->sec_idx = shndx; in init_struct_ops_maps()
4012 int shndx) in bpf_object__shndx_is_data()
4014 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__shndx_is_data()
4025 int shndx) in bpf_object__shndx_is_maps()
4027 return shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()
4031 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument
4033 if (shndx == obj->efile.symbols_shndx) in bpf_object__section_to_libbpf_map_type()
4036 switch (obj->efile.secs[shndx] in bpf_object__section_to_libbpf_map_type()
1141 init_struct_ops_maps(struct bpf_object *obj, const char *sec_name, int shndx, Elf_Data *data, __u32 map_flags) init_struct_ops_maps() argument
4011 bpf_object__shndx_is_data(const struct bpf_object *obj, int shndx) bpf_object__shndx_is_data() argument
4024 bpf_object__shndx_is_maps(const struct bpf_object *obj, int shndx) bpf_object__shndx_is_maps() argument
[all...]

Completed in 39 milliseconds