Home
last modified time | relevance | path

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

/external/elfutils/libdwfl/
Ddwfl_module_addrsym.c65 inline bool same_section (const GElf_Sym *sym, GElf_Word shndx) in dwfl_module_addrsym()
68 if (shndx >= SHN_LORESERVE) in dwfl_module_addrsym()
91 return shndx == addr_shndx; in dwfl_module_addrsym()
111 GElf_Word shndx; in dwfl_module_addrsym() local
112 const char *name = INTUSE(dwfl_module_getsym) (mod, i, &sym, &shndx); in dwfl_module_addrsym()
138 closest_shndx = shndx; in dwfl_module_addrsym()
141 else if (same_section (&sym, shndx)) in dwfl_module_addrsym()
148 sizeless_shndx = shndx; in dwfl_module_addrsym()
162 closest_shndx = shndx; in dwfl_module_addrsym()
Ddwfl_module_getsym.c66 GElf_Word shndx; in dwfl_module_getsym() local
67 sym = gelf_getsymshndx (mod->symdata, mod->symxndxdata, ndx, sym, &shndx); in dwfl_module_getsym()
75 shndx = sym->st_shndx; in dwfl_module_getsym()
78 *shndxp = shndx; in dwfl_module_getsym()
80 switch (shndx) in dwfl_module_getsym()
95 shndx, &sym->st_value); in dwfl_module_getsym()
Drelocate.c60 Elf32_Word shndx, GElf_Addr *value) in __libdwfl_relocate_value() argument
62 Elf_Scn *refscn = elf_getscn (elf, shndx); in __libdwfl_relocate_value()
81 name, shndx, refshdr, in __libdwfl_relocate_value()
123 int symndx, GElf_Sym *sym, GElf_Word *shndx) in relocate_getsym() argument
180 symndx, sym, shndx) == NULL)) in relocate_getsym()
184 *shndx = sym->st_shndx; in relocate_getsym()
186 switch (*shndx) in relocate_getsym()
195 *shndx, &sym->st_value); in relocate_getsym()
206 GElf_Sym *sym, GElf_Word shndx) in resolve_symbol() argument
243 ndx, sym, &shndx); in resolve_symbol()
[all …]
Doffline.c65 Elf32_Word shndx, in dwfl_offline_section_address() argument
81 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); in dwfl_offline_section_address()
Dlibdwfl.h86 GElf_Word shndx, const GElf_Shdr *shdr,
DlibdwflP.h265 Elf32_Word shndx,
Dlinux-kernel-modules.c718 const char *secname, Elf32_Word shndx __attribute__ ((unused)), in INTDEF()
/external/elfutils/libelf/
Dgelf_update_symshndx.c74 Elf32_Word *shndx = NULL; local
108 shndx = &((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx];
164 if (shndx != NULL)
165 *shndx = srcshndx;
Dgelf_getsymshndx.c74 Elf32_Word shndx = 0; local
99 shndx = ((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx];
153 *dstshndx = shndx;
/external/elfutils/src/
Dunstrip.c347 GElf_Word shndx = SHN_UNDEF; in symtab_count_leading_section_symbols() local
348 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx); in symtab_count_leading_section_symbols()
356 shndx = sym->st_shndx; in symtab_count_leading_section_symbols()
358 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION) in symtab_count_leading_section_symbols()
363 shndx = SHN_UNDEF; in symtab_count_leading_section_symbols()
364 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx), in symtab_count_leading_section_symbols()
575 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
577 i, &sym_mem, &shndx); in add_new_section_symbols()
579 sym, shndx), in add_new_section_symbols()
598 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i; in add_new_section_symbols() local
[all …]
Dldgeneric.c107 static void mark_section_used (struct scninfo *scninfo, Elf32_Word shndx,
526 matching_group_comdat_scn (const XElf_Sym *sym, size_t shndx, in matching_group_comdat_scn() argument
529 if ((shndx >= SHN_LORESERVE && shndx <= SHN_HIRESERVE) in matching_group_comdat_scn()
534 size_t newgrpid = fileinfo->scninfo[shndx].grpid; in matching_group_comdat_scn()
594 check_definition (const XElf_Sym *sym, size_t shndx, size_t symidx, in check_definition() argument
602 if (shndx != SHN_UNDEF in check_definition()
604 || (shndx != SHN_COMMON && oldp->common && ! new_in_dso) in check_definition()
634 else if (shndx != SHN_UNDEF in check_definition()
636 && matching_group_comdat_scn (sym, shndx, fileinfo, oldp)) in check_definition()
641 else if (shndx != SHN_UNDEF in check_definition()
[all …]
Daddr2line.c300 GElf_Word shndx; in print_addrsym() local
301 const char *name = dwfl_module_addrsym (mod, addr, &s, &shndx); in print_addrsym()
391 GElf_Word shndx; in handle_address() local
392 const char *scn = dwfl_module_relocation_info (mod, i, &shndx); in handle_address()
401 (elf_getscn (dwfl_module_getelf (mod, &shdr_bias), shndx), in handle_address()
Delflint.c2604 in_nobits_scn (Ebl *ebl, unsigned int shndx) in in_nobits_scn() argument
2607 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, shndx), &shdr_mem); in in_nobits_scn()
3887 Elf_Data *data, int shndx, int phndx, GElf_Off start) in check_note_data() argument
3923 if (shndx == 0) in check_note_data()
3931 shndx, section_name (ebl, shndx), in check_note_data()
3949 if (shndx == 0) in check_note_data()
3957 shndx, section_name (ebl, shndx), in check_note_data()
Dreadelf.c6313 unsigned long int shndx = strtoul (a->arg, &endp, 0); in for_each_section_argument() local
6316 scn = elf_getscn (elf, shndx); in for_each_section_argument()
6319 error (0, 0, gettext ("\nsection [%lu] does not exist"), shndx); in for_each_section_argument()
DChangeLog425 SHN_UNDEF as "bad section". Use shndx value in messages.
638 Take new arg SPLIT_BSS. Adjust S->shndx recorded for symbols moved
/external/grub/docs/
Dmultiboot.h76 unsigned long shndx; member
Dkernel.c130 (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx); in cmain()
Dkernel.c.texi128 " addr = 0x%x, shndx = 0x%x\n",
130 (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx);
Dmultiboot.h.texi76 unsigned long shndx;
Dmultiboot.info731 40 | shndx |
1130 unsigned long shndx;
1398 " addr = 0x%x, shndx = 0x%x\n",
1400 (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx);
Dmultiboot.texi784 40 | shndx |
/external/grub/stage2/
Dmb_info.h143 unsigned long shndx; member
Dboot.c663 mbi.syms.e.shndx = pu.elf->e_shstrndx; in load_image()
725 mbi.syms.e.shndx = 0; in load_image()
/external/llvm/lib/MC/
DELFObjectWriter.cpp239 uint8_t other, uint32_t shndx,
439 uint32_t shndx, in WriteSymbolEntry() argument
442 if (shndx >= ELF::SHN_LORESERVE && !Reserved) in WriteSymbolEntry()
443 String32(*ShndxF, shndx); in WriteSymbolEntry()
448 uint16_t Index = (shndx >= ELF::SHN_LORESERVE && !Reserved) ? in WriteSymbolEntry()
449 uint16_t(ELF::SHN_XINDEX) : shndx; in WriteSymbolEntry()
/external/valgrind/main/perf/
Dtinycc.c5472 int info, int other, int shndx, const char *name);
18202 int info, int other, int shndx, const char *name) in put_elf_sym() argument
18220 sym->st_shndx = shndx; in put_elf_sym()