Home
last modified time | relevance | path

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

12

/third_party/elfutils/libdwfl/
Ddwfl_module_addrsym.c66 GElf_Addr value, Elf *symelf, GElf_Word shndx) in same_section() argument
69 if (shndx >= SHN_LORESERVE) in same_section()
109 return shndx == state->addr_shndx && state->addr_symelf == symelf; in same_section()
133 const char *name, GElf_Word shndx, in try_sym_value() argument
154 state->closest_shndx = shndx; in try_sym_value()
162 shndx)) in try_sym_value()
170 state->sizeless_shndx = shndx; in try_sym_value()
190 state->closest_shndx = shndx; in try_sym_value()
205 GElf_Word shndx; in search_table() local
209 &shndx, &elf, NULL, in search_table()
[all …]
Drelocate.c46 Elf32_Word shndx, GElf_Addr *value) in __libdwfl_relocate_value() argument
51 if (shndx == 0) in __libdwfl_relocate_value()
54 Elf_Scn *refscn = elf_getscn (elf, shndx); in __libdwfl_relocate_value()
73 name, shndx, refshdr, in __libdwfl_relocate_value()
117 int symndx, GElf_Sym *sym, GElf_Word *shndx) in relocate_getsym() argument
183 symndx, sym, shndx) == NULL)) in relocate_getsym()
187 *shndx = sym->st_shndx; in relocate_getsym()
201 *shndx, &sym->st_value); in relocate_getsym()
212 GElf_Sym *sym, GElf_Word shndx) in resolve_symbol() argument
275 ndx, sym, &shndx); in resolve_symbol()
[all …]
Ddwfl_module_getsym.c55 GElf_Word shndx; in __libdwfl_getsym() local
99 sym = gelf_getsymshndx (symdata, symxndxdata, tndx, sym, &shndx); in __libdwfl_getsym()
108 shndx = sym->st_shndx; in __libdwfl_getsym()
117 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, shndx), &shdr_mem); in __libdwfl_getsym()
150 *shndxp = alloc ? shndx : (GElf_Word) -1; in __libdwfl_getsym()
167 shndx, &st_value); in __libdwfl_getsym()
Doffline.c49 Elf32_Word shndx, in dwfl_offline_section_address() argument
56 assert (shndx != 0); in dwfl_offline_section_address()
66 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); in dwfl_offline_section_address()
Dlibdwfl.h76 GElf_Word shndx, const GElf_Shdr *shdr,
DlibdwflP.h500 Elf32_Word shndx,
Dlinux-kernel-modules.c902 const char *secname, Elf32_Word shndx __attribute__ ((unused)), in INTDEF()
/third_party/elfutils/src/
Dunstrip.c390 GElf_Word shndx = SHN_UNDEF; in symtab_count_leading_section_symbols() local
391 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx); in symtab_count_leading_section_symbols()
399 shndx = sym->st_shndx; in symtab_count_leading_section_symbols()
401 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION) in symtab_count_leading_section_symbols()
406 shndx = SHN_UNDEF; in symtab_count_leading_section_symbols()
407 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx), in symtab_count_leading_section_symbols()
654 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
656 i, &sym_mem, &shndx); in add_new_section_symbols()
659 sym, shndx), in add_new_section_symbols()
678 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i; in add_new_section_symbols() local
[all …]
Daddr2line.c531 GElf_Word shndx; in adjust_to_section() local
532 const char *scn = dwfl_module_relocation_info (mod, i, &shndx); in adjust_to_section()
541 (elf_getscn (dwfl_module_getelf (mod, &shdr_bias), shndx), in adjust_to_section()
Delflint.c2884 in_nobits_scn (Ebl *ebl, unsigned int shndx) in in_nobits_scn() argument
2887 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, shndx), &shdr_mem); in in_nobits_scn()
4306 Elf_Data *data, int shndx, int phndx, GElf_Off start) in check_note_data() argument
4342 if (shndx == 0) in check_note_data()
4350 shndx, section_name (ebl, shndx), in check_note_data()
4402 if (shndx == 0) in check_note_data()
4411 shndx, section_name (ebl, shndx), in check_note_data()
/third_party/elfio/elfio/
Delfio_symbols.hpp179 Elf_Half shndx ) in add_symbol() argument
194 other, shndx ); in add_symbol()
198 other, shndx ); in add_symbol()
211 Elf_Half shndx ) in add_symbol() argument
214 shndx ); in add_symbol()
224 Elf_Half shndx ) in add_symbol() argument
227 return add_symbol( index, value, size, info, other, shndx ); in add_symbol()
238 Elf_Half shndx ) in add_symbol() argument
241 ELF_ST_INFO( bind, type ), other, shndx ); in add_symbol()
477 Elf_Half shndx ) in generic_add_symbol() argument
[all …]
Delfio_relocation.hpp284 Elf_Half shndx, in add_entry() argument
290 sym_info, other, shndx ); in add_entry()
/third_party/elfutils/libelf/
Dgelf_update_symshndx.c49 Elf32_Word *shndx = NULL; in gelf_update_symshndx() local
77 shndx = &((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx]; in gelf_update_symshndx()
133 if (shndx != NULL) in gelf_update_symshndx()
134 *shndx = srcshndx; in gelf_update_symshndx()
Dgelf_getsymshndx.c49 Elf32_Word shndx = 0; in gelf_getsymshndx() local
74 shndx = ((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx]; in gelf_getsymshndx()
128 *dstshndx = shndx; in gelf_getsymshndx()
/third_party/elfutils/tests/
Ddwflsyms.c87 elf_section_name (Elf *elf, GElf_Word shndx) in elf_section_name() argument
91 Elf_Scn *scn = elf_getscn (elf, shndx); in elf_section_name()
98 addr_in_section (Elf *elf, GElf_Word shndx, GElf_Addr addr) in addr_in_section() argument
101 Elf_Scn *scn = elf_getscn (elf, shndx); in addr_in_section()
Delfstrmerge.c577 Elf32_Word *shndx = (Elf32_Word *) data->d_buf; in main() local
581 if (shndx[i] == SHN_UNDEF) in main()
584 newshndx[i] = newsecndx (shndx[i], shdrstrndx, shdrnum, in main()
/third_party/libffi/
Dmake_sunver.pl91 (undef, undef, undef, undef, $bind, $oth, undef, $shndx, $name) = split;
101 next if ($shndx eq "UNDEF");
/third_party/ffmpeg/compat/solaris/
Dmake_sunver.pl108 (undef, undef, undef, undef, $bind, $oth, undef, $shndx, $name) = split;
118 next if ($shndx eq "UNDEF");
/third_party/elfio/examples/c_wrapper/
Delfio_c_wrapper.cpp250 Elf_Half shndx ) in elfio_symbol_add_symbol() argument
252 return psymbol->add_symbol( name, value, size, info, other, shndx ); in elfio_symbol_add_symbol()
Delfio_c_wrapper.h209 Elf_Half shndx );
/third_party/elfio/c_wrapper/
Delfio_c_wrapper.cpp250 Elf_Half shndx ) in elfio_symbol_add_symbol() argument
252 return psymbol->add_symbol( name, value, size, info, other, shndx ); in elfio_symbol_add_symbol()
Delfio_c_wrapper.h211 Elf_Half shndx );
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DELFObjectWriter.cpp97 uint8_t other, uint32_t shndx, bool Reserved);
366 uint32_t shndx, bool Reserved) { in writeSymbol() argument
367 bool LargeIndex = shndx >= ELF::SHN_LORESERVE && !Reserved; in writeSymbol()
374 ShndxIndexes.push_back(shndx); in writeSymbol()
379 uint16_t Index = LargeIndex ? uint16_t(ELF::SHN_XINDEX) : shndx; in writeSymbol()
/third_party/elfutils/include/elfutils/
Dlibdwfl.h76 GElf_Word shndx, const GElf_Shdr *shdr,
/third_party/libbpf/src/
Dlibbpf.c4293 int shndx) argument
4295 switch (obj->efile.secs[shndx].sec_type) {
4306 int shndx) argument
4308 return shndx == obj->efile.btf_maps_shndx;
4312 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) argument
4314 if (shndx == obj->efile.symbols_shndx)
4317 switch (obj->efile.secs[shndx].sec_type) {

12