Lines Matching defs:paRels

203     const Elf_Reloc  *paRels   = (const Elf_Reloc *)pvRelocs;
204 const unsigned iRelMax = (unsigned)(cbRelocs / sizeof(paRels[0]));
205 AssertMsgReturn(iRelMax == cbRelocs / sizeof(paRels[0]), (FMT_ELF_SIZE "\n", cbRelocs / sizeof(paRels[0])),
214 if (ELF_R_TYPE(paRels[iRel].r_info) == R_386_NONE)
217 if (ELF_R_TYPE(paRels[iRel].r_info) == R_X86_64_NONE)
224 Elf_Size iSym = ELF_R_SYM(paRels[iRel].r_info);
265 Value = SymValue + paRels[iRel].r_addend;
271 AssertMsgReturn(paRels[iRel].r_offset < cbSec, (FMT_ELF_ADDR " " FMT_ELF_SIZE "\n", paRels[iRel].r_offset, cbSec), VERR_LDRELF_INVALID_RELOCATION_OFFSET);
273 const Elf_Addr *pAddrR = (const Elf_Addr *)(pu8SecBaseR + paRels[iRel].r_offset); /* Where to read the addend. */
275 Elf_Addr *pAddrW = (Elf_Addr *)(pu8SecBaseW + paRels[iRel].r_offset); /* Where to write the fixup. */
276 switch (ELF_R_TYPE(paRels[iRel].r_info))
294 Log4((FMT_ELF_ADDR": R_386_32 Value=" FMT_ELF_ADDR "\n", SecAddr + paRels[iRel].r_offset + BaseAddr, Value));
310 const Elf_Addr SourceAddr = SecAddr + paRels[iRel].r_offset + BaseAddr; /* Where the source really is. */
316 Log4((FMT_ELF_ADDR": R_386_PC32 Value=" FMT_ELF_ADDR "\n", SecAddr + paRels[iRel].r_offset + BaseAddr, Value));
329 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
340 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
353 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
363 const Elf_Addr SourceAddr = SecAddr + paRels[iRel].r_offset + BaseAddr; /* Where the source really is. */
375 ELF_R_TYPE(paRels[iRel].r_info), iRel, iRelMax));
519 const Elf_Reloc *paRels = (const Elf_Reloc *)pvRelocs;
520 const unsigned iRelMax = (unsigned)(cbRelocs / sizeof(paRels[0]));
521 AssertMsgReturn(iRelMax == cbRelocs / sizeof(paRels[0]), (FMT_ELF_SIZE "\n", cbRelocs / sizeof(paRels[0])), VERR_IMAGE_TOO_BIG);
529 if (ELF_R_TYPE(paRels[iRel].r_info) == R_386_NONE)
532 if (ELF_R_TYPE(paRels[iRel].r_info) == R_X86_64_NONE)
542 int rc = RTLDRELF_NAME(Symbol)(pModElf, BaseAddr, pfnGetImport, pvUser, ELF_R_SYM(paRels[iRel].r_info), &pSym, &SymValue);
547 paRels[iRel].r_offset, ELF_R_TYPE(paRels[iRel].r_info), (unsigned)ELF_R_SYM(paRels[iRel].r_info),
553 AssertMsgReturn(paRels[iRel].r_offset < cbSec, (FMT_ELF_ADDR " " FMT_ELF_SIZE "\n", paRels[iRel].r_offset, cbSec), VERR_LDRELF_INVALID_RELOCATION_OFFSET);
555 const Elf_Addr *pAddrR = (const Elf_Addr *)(pu8SecBaseR + paRels[iRel].r_offset); /* Where to read the addend. */
557 Elf_Addr *pAddrW = (Elf_Addr *)(pu8SecBaseW + paRels[iRel].r_offset); /* Where to write the fixup. */
558 switch (ELF_R_TYPE(paRels[iRel].r_info))
569 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
578 const Elf_Addr SourceAddr = SecAddr + paRels[iRel].r_offset + BaseAddr; /* Where the source really is. */
597 const Elf_Addr Value = SymValue + paRels[iRel].r_addend;
600 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
609 const Elf_Addr Value = SymValue + paRels[iRel].r_addend;
612 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
622 const Elf_Addr Value = SymValue + paRels[iRel].r_addend;
625 SecAddr + paRels[iRel].r_offset + BaseAddr, Value, SymValue));
635 const Elf_Addr SourceAddr = SecAddr + paRels[iRel].r_offset + BaseAddr; /* Where the source really is. */
636 const Elf_Addr Value = SymValue + paRels[iRel].r_addend - SourceAddr;
651 ELF_R_TYPE(paRels[iRel].r_info), iRel, iRelMax));