Lines Matching refs:shndx
348 GElf_Word shndx = SHN_UNDEF;
349 GElf_Sym *sym = gelf_getsymshndx (data, shndxdata, i, &sym_mem, &shndx);
357 shndx = sym->st_shndx;
359 if (shndx != i || GELF_ST_TYPE (sym->st_info) != STT_SECTION)
364 shndx = SHN_UNDEF;
365 ELF_CHECK (gelf_update_symshndx (newsymdata, shndxdata, i, sym, shndx),
579 GElf_Word shndx = SHN_UNDEF;
581 i, &sym_mem, &shndx);
583 sym, shndx),
602 GElf_Word shndx = i < SHN_LORESERVE ? SHN_UNDEF : i;
604 &sym, shndx),
612 GElf_Word shndx = SHN_UNDEF;
614 i, &sym_mem, &shndx);
616 i + added, sym, shndx),
733 GElf_Word shndx;
765 GElf_Word shndx = SHN_UNDEF;
767 &sym_mem, &shndx);
770 shndx = sym->st_shndx;
781 s->shndx = shndx;
785 if (scnmap != NULL && shndx != SHN_UNDEF && shndx < SHN_LORESERVE)
786 s->shndx = scnmap[shndx - 1];
792 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx),
800 && shndx == elf_ndxscn (split_bss->outscn))
802 s->shndx = elf_ndxscn (split_bss[-1].outscn);
823 CMP (shndx);
854 CMP (shndx);
1541 GElf_Word shndx = SHN_UNDEF;
1543 i, &sym_mem, &shndx);
1547 shndx = sym->st_shndx;
1549 if (shndx != SHN_UNDEF && shndx < SHN_LORESERVE)
1551 if (shndx >= stripped_shnum)
1555 shndx = ndx_section[shndx - 1];
1556 if (shndx < SHN_LORESERVE)
1558 sym->st_shndx = shndx;
1559 shndx = SHN_UNDEF;
1565 i, sym, shndx),
1625 if (s->shndx == SHN_UNDEF
1707 sym.st_shndx = s->shndx; /* Already mapped to output index. */