Home
last modified time | relevance | path

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

12

/external/elfutils/libdwfl/
Ddwfl_module_addrsym.c62 GElf_Addr value, Elf *symelf, GElf_Word shndx) in same_section() argument
65 if (shndx >= SHN_LORESERVE) in same_section()
105 return shndx == state->addr_shndx && state->addr_symelf == symelf; in same_section()
129 const char *name, GElf_Word shndx, in try_sym_value() argument
150 state->closest_shndx = shndx; in try_sym_value()
158 shndx)) in try_sym_value()
166 state->sizeless_shndx = shndx; in try_sym_value()
186 state->closest_shndx = shndx; in try_sym_value()
201 GElf_Word shndx; in search_table() local
205 &shndx, &elf, NULL, in search_table()
[all …]
Drelocate.c39 Elf32_Word shndx, GElf_Addr *value) in __libdwfl_relocate_value() argument
44 if (shndx == 0) in __libdwfl_relocate_value()
47 Elf_Scn *refscn = elf_getscn (elf, shndx); in __libdwfl_relocate_value()
66 name, shndx, refshdr, in __libdwfl_relocate_value()
110 int symndx, GElf_Sym *sym, GElf_Word *shndx) in relocate_getsym() argument
176 symndx, sym, shndx) == NULL)) in relocate_getsym()
180 *shndx = sym->st_shndx; in relocate_getsym()
194 *shndx, &sym->st_value); in relocate_getsym()
205 GElf_Sym *sym, GElf_Word shndx) in resolve_symbol() argument
268 ndx, sym, &shndx); in resolve_symbol()
[all …]
Ddwfl_module_getsym.c51 GElf_Word shndx; in __libdwfl_getsym() local
95 sym = gelf_getsymshndx (symdata, symxndxdata, tndx, sym, &shndx); in __libdwfl_getsym()
104 shndx = sym->st_shndx; in __libdwfl_getsym()
113 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, shndx), &shdr_mem); in __libdwfl_getsym()
146 *shndxp = alloc ? shndx : (GElf_Word) -1; in __libdwfl_getsym()
163 shndx, &st_value); in __libdwfl_getsym()
Doffline.c44 Elf32_Word shndx, in dwfl_offline_section_address() argument
51 assert (shndx != 0); in dwfl_offline_section_address()
61 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); in dwfl_offline_section_address()
Dlibdwfl.h73 GElf_Word shndx, const GElf_Shdr *shdr,
DlibdwflP.h497 Elf32_Word shndx,
Dlinux-kernel-modules.c820 const char *secname, Elf32_Word shndx __attribute__ ((unused)), in INTDEF()
DChangeLog389 * offline.c (dwfl_offline_section_address): Assert shndx is not zero.
836 * libdwfl.h (dwfl_module_getsym): Document limitations of shndx.
/external/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()
/external/llvm/test/Object/
Dobjdump-shndx.test1 RUN: llvm-objdump -r %p/Inputs/shndx.elf | FileCheck %s
3 Test that llvm-objdump can handle shndx. The relocation points to a section
5 has to use the shndx section.
/external/google-breakpad/src/common/linux/
Delf_symbols_to_module.cc64 uint16_t shndx; member
105 .Read(2, false, &symbol_.shndx); in Fetch()
112 .Read(2, false, &symbol_.shndx) in Fetch()
158 iterator->shndx != SHN_UNDEF) { in ELFSymbolsToModule()
Dsynth_elf.cc222 uint32_t size, unsigned info, uint16_t shndx) { in AddSymbol() argument
229 D16(shndx); in AddSymbol()
233 uint64_t size, unsigned info, uint16_t shndx) { in AddSymbol() argument
238 D16(shndx); in AddSymbol()
Delf_symbols_to_module_unittest.cc98 uint32_t size, unsigned info, uint16_t shndx) { in AddElf32Sym() argument
105 .D16(shndx); in AddElf32Sym()
268 uint64_t size, unsigned info, uint16_t shndx) { in AddElf64Sym() argument
273 .D16(shndx) in AddElf64Sym()
Dsynth_elf.h170 uint32_t size, unsigned info, uint16_t shndx);
173 uint64_t size, unsigned info, uint16_t shndx);
/external/elfutils/src/
Dunstrip.c381 GElf_Word shndx = SHN_UNDEF; in symtab_count_leading_section_symbols() local
382 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx); in symtab_count_leading_section_symbols()
390 shndx = sym->st_shndx; in symtab_count_leading_section_symbols()
392 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION) in symtab_count_leading_section_symbols()
397 shndx = SHN_UNDEF; in symtab_count_leading_section_symbols()
398 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx), in symtab_count_leading_section_symbols()
615 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
617 i, &sym_mem, &shndx); in add_new_section_symbols()
619 sym, shndx), in add_new_section_symbols()
638 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i; in add_new_section_symbols() local
[all …]
Dldgeneric.c99 static void mark_section_used (struct scninfo *scninfo, Elf32_Word shndx,
516 matching_group_comdat_scn (const XElf_Sym *sym, size_t shndx, in matching_group_comdat_scn() argument
519 if ((shndx >= SHN_LORESERVE && shndx <= SHN_HIRESERVE) in matching_group_comdat_scn()
524 size_t newgrpid = fileinfo->scninfo[shndx].grpid; in matching_group_comdat_scn()
584 check_definition (const XElf_Sym *sym, size_t shndx, size_t symidx, in check_definition() argument
592 if (shndx != SHN_UNDEF in check_definition()
594 || (shndx != SHN_COMMON && oldp->common && ! new_in_dso) in check_definition()
624 else if (shndx != SHN_UNDEF in check_definition()
626 && matching_group_comdat_scn (sym, shndx, fileinfo, oldp)) in check_definition()
631 else if (shndx != SHN_UNDEF in check_definition()
[all …]
Daddr2line.c539 GElf_Word shndx; in adjust_to_section() local
540 const char *scn = dwfl_module_relocation_info (mod, i, &shndx); in adjust_to_section()
549 (elf_getscn (dwfl_module_getelf (mod, &shdr_bias), shndx), in adjust_to_section()
Delflint.c2842 in_nobits_scn (Ebl *ebl, unsigned int shndx) in in_nobits_scn() argument
2845 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, shndx), &shdr_mem); in in_nobits_scn()
4247 Elf_Data *data, int shndx, int phndx, GElf_Off start) in check_note_data() argument
4283 if (shndx == 0) in check_note_data()
4291 shndx, section_name (ebl, shndx), in check_note_data()
4310 if (shndx == 0) in check_note_data()
4318 shndx, section_name (ebl, shndx), in check_note_data()
Dreadelf.c9612 unsigned long int shndx = strtoul (a->arg, &endp, 0); in for_each_section_argument() local
9615 scn = elf_getscn (elf, shndx); in for_each_section_argument()
9618 error (0, 0, gettext ("\nsection [%lu] does not exist"), shndx); in for_each_section_argument()
DChangeLog2553 SHN_UNDEF as "bad section". Use shndx value in messages.
2766 Take new arg SPLIT_BSS. Adjust S->shndx recorded for symbols moved
/external/elfutils/tests/
Ddwflsyms.c88 elf_section_name (Elf *elf, GElf_Word shndx) in elf_section_name() argument
92 Elf_Scn *scn = elf_getscn (elf, shndx); in elf_section_name()
99 addr_in_section (Elf *elf, GElf_Word shndx, GElf_Addr addr) in addr_in_section() argument
102 Elf_Scn *scn = elf_getscn (elf, shndx); in addr_in_section()
Delfstrmerge.c566 Elf32_Word *shndx = (Elf32_Word *) data->d_buf; in main() local
570 if (shndx[i] == SHN_UNDEF) in main()
573 newshndx[i] = newsecndx (shndx[i], "section", ndx, in main()
/external/llvm/lib/MC/
DELFObjectWriter.cpp67 uint8_t other, uint32_t shndx, bool Reserved);
264 uint32_t shndx, bool Reserved) { in writeSymbol() argument
265 bool LargeIndex = shndx >= ELF::SHN_LORESERVE && !Reserved; in writeSymbol()
272 ShndxIndexes.push_back(shndx); in writeSymbol()
277 uint16_t Index = LargeIndex ? uint16_t(ELF::SHN_XINDEX) : shndx; in writeSymbol()
/external/elfutils/include/elfutils/
Dlibdwfl.h73 GElf_Word shndx, const GElf_Shdr *shdr,

12