Lines Matching refs:shndx

389       GElf_Word shndx = SHN_UNDEF;  in symtab_count_leading_section_symbols()  local
390 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx); in symtab_count_leading_section_symbols()
398 shndx = sym->st_shndx; in symtab_count_leading_section_symbols()
400 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION) in symtab_count_leading_section_symbols()
405 shndx = SHN_UNDEF; in symtab_count_leading_section_symbols()
406 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx), in symtab_count_leading_section_symbols()
644 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
646 i, &sym_mem, &shndx); in add_new_section_symbols()
648 sym, shndx), in add_new_section_symbols()
667 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i; in add_new_section_symbols() local
669 &sym, shndx), in add_new_section_symbols()
677 GElf_Word shndx = SHN_UNDEF; in add_new_section_symbols() local
679 i, &sym_mem, &shndx); in add_new_section_symbols()
681 i + added, sym, shndx), in add_new_section_symbols()
810 GElf_Word shndx; member
842 GElf_Word shndx = SHN_UNDEF; in collect_symbols() local
844 &sym_mem, &shndx); in collect_symbols()
847 shndx = sym->st_shndx; in collect_symbols()
858 s->shndx = shndx; in collect_symbols()
862 if (scnmap != NULL && shndx != SHN_UNDEF && shndx < SHN_LORESERVE) in collect_symbols()
863 s->shndx = scnmap[shndx - 1]; in collect_symbols()
869 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), in collect_symbols()
877 && shndx == elf_ndxscn (split_bss->outscn)) in collect_symbols()
879 s->shndx = elf_ndxscn (split_bss[-1].outscn); in collect_symbols()
900 CMP (shndx); in compare_symbols()
931 CMP (shndx); in compare_symbols_output()
1698 GElf_Word shndx = SHN_UNDEF; in copy_elided_sections() local
1700 i, &sym_mem, &shndx); in copy_elided_sections()
1704 shndx = sym->st_shndx; in copy_elided_sections()
1706 if (shndx != SHN_UNDEF && shndx < SHN_LORESERVE) in copy_elided_sections()
1708 if (shndx >= stripped_shnum) in copy_elided_sections()
1712 shndx = ndx_section[shndx - 1]; in copy_elided_sections()
1713 if (shndx < SHN_LORESERVE) in copy_elided_sections()
1715 sym->st_shndx = shndx; in copy_elided_sections()
1716 shndx = SHN_UNDEF; in copy_elided_sections()
1722 i, sym, shndx), in copy_elided_sections()
1738 Elf32_Word *shndx = (Elf32_Word *) outdata->d_buf; in copy_elided_sections() local
1740 if (shndx[i] == SHN_UNDEF || shndx[i] >= stripped_shnum) in copy_elided_sections()
1744 shndx[i] = ndx_section[shndx[i] - 1]; in copy_elided_sections()
1801 if (s->shndx == SHN_UNDEF in copy_elided_sections()
1929 sym.st_shndx = s->shndx; /* Already mapped to output index. */ in copy_elided_sections()