Home
last modified time | relevance | path

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

/third_party/elfutils/libdwfl/
H A Drelocate.c46 Elf32_Word shndx, GElf_Addr *value) in __libdwfl_relocate_value()
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()
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()
275 ndx, sym, &shndx); in resolve_symbol()
45 __libdwfl_relocate_value(Dwfl_Module *mod, Elf *elf, size_t *shstrndx, Elf32_Word shndx, GElf_Addr *value) __libdwfl_relocate_value() argument
115 relocate_getsym(Dwfl_Module *mod, Elf *relocated, struct reloc_symtab_cache *cache, int symndx, GElf_Sym *sym, GElf_Word *shndx) relocate_getsym() argument
211 resolve_symbol(Dwfl_Module *referer, struct reloc_symtab_cache *symtab, GElf_Sym *sym, GElf_Word shndx) resolve_symbol() argument
363 GElf_Word shndx; relocate() local
[all...]
H A Ddwfl_module_addrsym.c66 GElf_Addr value, Elf *symelf, GElf_Word shndx) in same_section()
69 if (shndx >= SHN_LORESERVE) in same_section()
72 /* If value might not be st_value, the shndx of the symbol might 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()
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
65 same_section(struct search_state *state, GElf_Addr value, Elf *symelf, GElf_Word shndx) same_section() argument
131 try_sym_value(struct search_state *state, GElf_Addr value, GElf_Sym *sym, const char *name, GElf_Word shndx, Elf *elf, bool resolved) try_sym_value() argument
[all...]
H A 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()
H A Doffline.c49 Elf32_Word shndx, in dwfl_offline_section_address()
56 assert (shndx != 0); in dwfl_offline_section_address()
66 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); in dwfl_offline_section_address()
44 dwfl_offline_section_address(Dwfl_Module *mod, void **userdata __attribute__ ((unused)), const char *modname __attribute__ ((unused)), Dwarf_Addr base __attribute__ ((unused)), const char *secname __attribute__ ((unused)), Elf32_Word shndx, const GElf_Shdr *shdr __attribute__ ((unused)), Dwarf_Addr *addr) dwfl_offline_section_address() argument
H A Dlibdwfl.h76 GElf_Word shndx, const GElf_Shdr *shdr,
H A DlibdwflP.h500 Elf32_Word shndx,
H A Dlinux-kernel-modules.c902 const char *secname, Elf32_Word shndx __attribute__ ((unused)), in INTDEF()
/third_party/elfutils/src/
H A Dunstrip.c391 GElf_Word shndx = SHN_UNDEF; in symtab_count_leading_section_symbols()
392 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx); in symtab_count_leading_section_symbols()
400 shndx = sym->st_shndx; in symtab_count_leading_section_symbols()
402 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION) in symtab_count_leading_section_symbols()
407 shndx = SHN_UNDEF; in symtab_count_leading_section_symbols()
408 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx), in symtab_count_leading_section_symbols()
655 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols()
657 i, &sym_mem, &shndx); in add_new_section_symbols()
660 sym, shndx), in add_new_section_symbols()
679 GElf_Word shndx in add_new_section_symbols()
390 GElf_Word shndx = SHN_UNDEF; symtab_count_leading_section_symbols() local
654 GElf_Word shndx = SHN_UNDEF; add_new_section_symbols() local
678 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i; add_new_section_symbols() local
688 GElf_Word shndx = SHN_UNDEF; add_new_section_symbols() local
822 GElf_Word shndx; global() member
856 GElf_Word shndx = SHN_UNDEF; collect_symbols() local
1745 GElf_Word shndx = SHN_UNDEF; copy_elided_sections() local
1785 Elf32_Word *shndx = (Elf32_Word *) outdata->d_buf; copy_elided_sections() local
[all...]
H A 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()
H A 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()
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()
4305 check_note_data(Ebl *ebl, const GElf_Ehdr *ehdr, Elf_Data *data, int shndx, int phndx, GElf_Off start) check_note_data() argument
H A Dreadelf.c12991 unsigned long int shndx = strtoul (a->arg, &endp, 0); in for_each_section_argument() local
12994 scn = elf_getscn (elf, shndx); in for_each_section_argument()
12997 error (0, 0, _("\nsection [%lu] does not exist"), shndx); in for_each_section_argument()
/third_party/elfutils/libelf/
H A 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()
H A 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/elfio/elfio/
H A Delfio_symbols.hpp179 Elf_Half shndx ) in add_symbol()
194 other, shndx ); in add_symbol()
198 other, shndx ); in add_symbol()
211 Elf_Half shndx ) in add_symbol()
214 shndx ); in add_symbol()
224 Elf_Half shndx ) in add_symbol()
227 return add_symbol( index, value, size, info, other, shndx ); in add_symbol()
238 Elf_Half shndx ) in add_symbol()
241 ELF_ST_INFO( bind, type ), other, shndx ); in add_symbol()
477 Elf_Half shndx ) in generic_add_symbol()
[all...]
H A Delfio_relocation.hpp284 Elf_Half shndx, in add_entry()
290 sym_info, other, shndx ); in add_entry()
277 add_entry( string_section_accessor str_writer, const char* str, symbol_section_accessor sym_writer, Elf64_Addr value, Elf_Word size, unsigned char sym_info, unsigned char other, Elf_Half shndx, Elf64_Addr offset, unsigned type ) add_entry() argument
/third_party/elfutils/tests/
H A 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()
H A 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()
585 fname, "section", ndx, "shndx", i); in main()
/third_party/vixl/examples/aarch32/
H A Ddisasm-a32.cc289 const Elf32_Shdr& shndx = shdr[sres->second.GetSection()]; in main() local
290 func_size = (shndx.sh_offset + shndx.sh_size) - sres->first; in main()
/third_party/elfio/c_wrapper/
H A Delfio_c_wrapper.cpp250 Elf_Half shndx ) in elfio_symbol_add_symbol()
252 return psymbol->add_symbol( name, value, size, info, other, shndx ); in elfio_symbol_add_symbol()
H A Delfio_c_wrapper.h211 Elf_Half shndx );
/third_party/elfio/examples/c_wrapper/
H A Delfio_c_wrapper.cpp250 Elf_Half shndx ) in elfio_symbol_add_symbol()
252 return psymbol->add_symbol( name, value, size, info, other, shndx ); in elfio_symbol_add_symbol()
H A Delfio_c_wrapper.h209 Elf_Half shndx );
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
H A DELFObjectWriter.cpp97 uint8_t other, uint32_t shndx, bool Reserved);
366 uint32_t shndx, bool Reserved) { in writeSymbol()
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()
364 writeSymbol(uint32_t name, uint8_t info, uint64_t value, uint64_t size, uint8_t other, uint32_t shndx, bool Reserved) writeSymbol() argument
/third_party/elfutils/include/elfutils/
H A Dlibdwfl.h76 GElf_Word shndx, const GElf_Shdr *shdr,
/third_party/libbpf/src/
H A Dlibbpf.c1187 int shndx, Elf_Data *data, __u32 map_flags) in init_struct_ops_maps()
1198 if (shndx == -1) in init_struct_ops_maps()
1238 map->sec_idx = shndx; in init_struct_ops_maps()
4396 int shndx)
4398 switch (obj->efile.secs[shndx].sec_type) {
4409 int shndx)
4411 return shndx == obj->efile.btf_maps_shndx;
4415 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) argument
4417 if (shndx == obj->efile.symbols_shndx)
4420 switch (obj->efile.secs[shndx]
1186 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
4395 bpf_object__shndx_is_data(const struct bpf_object *obj, int shndx) global() argument
4408 bpf_object__shndx_is_maps(const struct bpf_object *obj, int shndx) global() argument
[all...]

Completed in 56 milliseconds