Lines Matching refs:pSym

230         const Elf_Sym *pSym = &pModElf->paSyms[iSym];
231 if (pSym->st_name >= pModElf->cbStr)
233 AssertMsgFailed(("iSym=%d st_name=%d str sh_size=%d\n", iSym, pSym->st_name, pModElf->cbStr));
238 if (pSym->st_shndx == SHN_UNDEF)
241 const char *pszName = ELF_STR(pModElf, pSym->st_name);
252 AssertMsgReturn(pSym->st_shndx < pModElf->cSyms || pSym->st_shndx == SHN_ABS, ("%#x\n", pSym->st_shndx),
255 SymValue = pSym->st_value;
262 if (pSym->st_shndx < pModElf->cSyms)
285 if (pSym->st_shndx < pModElf->Ehdr.e_shnum)
287 else if (pSym->st_shndx == SHN_ABS)
289 else if (pSym->st_shndx == SHN_UNDEF)
304 if (pSym->st_shndx < pModElf->Ehdr.e_shnum)
306 else if (pSym->st_shndx == SHN_ABS)
308 else if (pSym->st_shndx == SHN_UNDEF)
418 const Elf_Sym *pSym = &pModElf->paSyms[iSym];
419 *ppSym = pSym;
421 if (pSym->st_name >= pModElf->cbStr)
423 AssertMsgFailed(("iSym=%d st_name=%d str sh_size=%d\n", iSym, pSym->st_name, pModElf->cbStr));
426 const char *pszName = ELF_STR(pModElf, pSym->st_name);
434 switch (pSym->st_shndx)
468 *pSymValue = pSym->st_value;
476 if (pSym->st_shndx >= pModElf->Ehdr.e_shnum)
479 AssertMsg(pSym->st_shndx < pModElf->Ehdr.e_shnum,
480 ("iSym=%d st_shndx=%d e_shnum=%d pszName=%s\n", iSym, pSym->st_shndx, pModElf->Ehdr.e_shnum, pszName));
483 *pSymValue = pSym->st_value + pModElf->paShdrs[pSym->st_shndx].sh_addr + BaseAddr;
484 Log2(("rtldrELF: #%-3d - %5d " FMT_ELF_ADDR " '%s'\n", iSym, pSym->st_shndx, *pSymValue, pszName));
540 const Elf_Sym *pSym = NULL; /* shut up gcc */
542 int rc = RTLDRELF_NAME(Symbol)(pModElf, BaseAddr, pfnGetImport, pvUser, ELF_R_SYM(paRels[iRel].r_info), &pSym, &SymValue);
548 SymValue, (unsigned)pSym->st_shndx, pSym->st_info, ELF_STR(pModElf, pSym->st_name)));
928 static int RTLDRELF_NAME(ReturnSymbol)(PRTLDRMODELF pThis, const Elf_Sym *pSym, Elf_Addr uBaseAddr, PRTUINTPTR pValue)
931 if (pSym->st_shndx == SHN_ABS)
933 Value = pSym->st_value;
934 else if (pSym->st_shndx < pThis->Ehdr.e_shnum)
938 Value = uBaseAddr + pSym->st_value + pThis->paShdrs[pSym->st_shndx].sh_addr;
940 Value = uBaseAddr + pSym->st_value - pThis->LinkAddress;
944 AssertMsgFailed(("Arg! pSym->st_shndx=%d\n", pSym->st_shndx));