/external/elfutils/libdwfl/ |
D | dwfl_module_addrsym.c | 62 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 …]
|
D | relocate.c | 39 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 …]
|
D | dwfl_module_getsym.c | 51 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()
|
D | offline.c | 44 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()
|
D | libdwfl.h | 73 GElf_Word shndx, const GElf_Shdr *shdr,
|
D | libdwflP.h | 497 Elf32_Word shndx,
|
D | linux-kernel-modules.c | 820 const char *secname, Elf32_Word shndx __attribute__ ((unused)), in INTDEF()
|
D | ChangeLog | 389 * offline.c (dwfl_offline_section_address): Assert shndx is not zero. 836 * libdwfl.h (dwfl_module_getsym): Document limitations of shndx.
|
/external/elfutils/libelf/ |
D | gelf_update_symshndx.c | 49 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()
|
D | gelf_getsymshndx.c | 49 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/ |
D | objdump-shndx.test | 1 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/ |
D | elf_symbols_to_module.cc | 64 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()
|
D | synth_elf.cc | 222 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()
|
D | elf_symbols_to_module_unittest.cc | 98 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()
|
D | synth_elf.h | 170 uint32_t size, unsigned info, uint16_t shndx); 173 uint64_t size, unsigned info, uint16_t shndx);
|
/external/elfutils/src/ |
D | unstrip.c | 381 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 …]
|
D | ldgeneric.c | 99 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 …]
|
D | addr2line.c | 539 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()
|
D | elflint.c | 2842 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()
|
D | readelf.c | 9612 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()
|
D | ChangeLog | 2553 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/ |
D | dwflsyms.c | 88 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()
|
D | elfstrmerge.c | 566 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/ |
D | ELFObjectWriter.cpp | 67 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/ |
D | libdwfl.h | 73 GElf_Word shndx, const GElf_Shdr *shdr,
|