Searched refs:shndx (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/arch/loongarch/kernel/ |
A D | module-sections.c | 21 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry() 51 plt = (struct plt_entry *)sechdrs[plt_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() 160 plt_sec = sechdrs + mod->arch.plt.shndx; in module_frob_arch_sections() [all …]
|
/linux-6.3-rc2/arch/loongarch/include/asm/ |
A D | module.h | 14 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()
|
/linux-6.3-rc2/scripts/ |
A D | sorttable.c | 187 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()
|
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()
|
/linux-6.3-rc2/tools/objtool/ |
A D | elf.c | 402 Elf32_Word shndx; in read_symbols() local 436 &shndx)) { in read_symbols() 452 shndx = sym->sym.st_shndx; in read_symbols() 454 sym->sec = find_section_by_index(elf, shndx); in read_symbols() 595 Elf32_Word shndx = sym->sec ? sym->sec->idx : SHN_UNDEF; in elf_update_symbol() local 604 shndx = sym->sym.st_shndx; in elf_update_symbol() 702 if ((shndx >= SHN_UNDEF && shndx < SHN_LORESERVE) || is_special_shndx) { in elf_update_symbol() 703 sym->sym.st_shndx = shndx; in elf_update_symbol() 705 shndx = 0; in elf_update_symbol() 714 if (!gelf_update_symshndx(symtab_data, shndx_data, idx, &sym->sym, shndx)) { in elf_update_symbol()
|
/linux-6.3-rc2/arch/x86/tools/ |
A D | relocs.c | 253 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() 819 int shndx = sym_index(sym); in is_percpu_sym() local 821 return (shndx == per_cpu_shndx) && in is_percpu_sym()
|
/linux-6.3-rc2/arch/mips/boot/tools/ |
A D | relocs.c | 91 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()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | probe-finder.c | 1685 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()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | libbpf.c | 3939 int shndx) in bpf_object__shndx_is_data() argument 3941 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__shndx_is_data() 3952 int shndx) in bpf_object__shndx_is_maps() argument 3954 return shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps() 3958 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument 3960 if (shndx == obj->efile.symbols_shndx) in bpf_object__section_to_libbpf_map_type() 3963 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__section_to_libbpf_map_type()
|
Completed in 35 milliseconds