Changeset 60450 in vbox
- Timestamp:
- Apr 12, 2016 11:49:23 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106537
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h
r56978 r60450 250 250 else 251 251 { 252 AssertMsgReturn(pSym->st_shndx < pModElf-> cSyms|| pSym->st_shndx == SHN_ABS, ("%#x\n", pSym->st_shndx),252 AssertMsgReturn(pSym->st_shndx < pModElf->Ehdr.e_shnum || pSym->st_shndx == SHN_ABS, ("%#x\n", pSym->st_shndx), 253 253 VERR_LDRELF_INVALID_RELOCATION_OFFSET); 254 254 #if ELF_MODE == 64 … … 258 258 259 259 #if ELF_MODE == 64 260 /* Calc the value . */260 /* Calc the value (indexes checked above; assumes SHN_UNDEF == 0). */ 261 261 Elf_Addr Value; 262 if (pSym->st_shndx < pModElf-> cSyms)262 if (pSym->st_shndx < pModElf->Ehdr.e_shnum) 263 263 Value = SymValue + offDelta; 264 else 264 else /* SHN_ABS: */ 265 265 Value = SymValue + paRels[iRel].r_addend; 266 266 #endif
Note:
See TracChangeset
for help on using the changeset viewer.