Lines Matching refs:shndx
347 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()
578 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
580 i, &sym_mem, &shndx); in add_new_section_symbols()
582 sym, shndx), in add_new_section_symbols()
601 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i; in add_new_section_symbols() local
603 &sym, shndx), in add_new_section_symbols()
611 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
613 i, &sym_mem, &shndx); in add_new_section_symbols()
615 i + added, sym, shndx), in add_new_section_symbols()
731 GElf_Word shndx; member
763 GElf_Word shndx = SHN_UNDEF; in collect_symbols() local
765 &sym_mem, &shndx); in collect_symbols()
768 shndx = sym->st_shndx; in collect_symbols()
779 s->shndx = shndx; in collect_symbols()
783 if (scnmap != NULL && shndx != SHN_UNDEF && shndx < SHN_LORESERVE) in collect_symbols()
784 s->shndx = scnmap[shndx - 1]; in collect_symbols()
790 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), in collect_symbols()
798 && shndx == elf_ndxscn (split_bss->outscn)) in collect_symbols()
800 s->shndx = elf_ndxscn (split_bss[-1].outscn); in collect_symbols()
821 CMP (shndx); in compare_symbols()
852 CMP (shndx); in compare_symbols_output()
1539 GElf_Word shndx = SHN_UNDEF; in copy_elided_sections() local
1541 i, &sym_mem, &shndx); in copy_elided_sections()
1545 shndx = sym->st_shndx; in copy_elided_sections()
1547 if (shndx != SHN_UNDEF && shndx < SHN_LORESERVE) in copy_elided_sections()
1549 if (shndx >= stripped_shnum) in copy_elided_sections()
1553 shndx = ndx_section[shndx - 1]; in copy_elided_sections()
1554 if (shndx < SHN_LORESERVE) in copy_elided_sections()
1556 sym->st_shndx = shndx; in copy_elided_sections()
1557 shndx = SHN_UNDEF; in copy_elided_sections()
1563 i, sym, shndx), in copy_elided_sections()
1623 if (s->shndx == SHN_UNDEF in copy_elided_sections()
1705 sym.st_shndx = s->shndx; /* Already mapped to output index. */ in copy_elided_sections()