Changeset 3022
- Timestamp:
- 06/04/07 14:32:29 (2 years ago)
- Files:
-
- trunk/include/iprt/err.h (modified) (1 diff)
- trunk/src/VBox/Runtime/ldrELFRelocatable.cpp.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/err.h
r3004 r3022 786 786 #define VERR_LDRELF_INVALID_SYMBOL_NAME_OFFSET (-638) 787 787 /** The ELF loader encountered an invalid relocation offset. */ 788 #define VERR_ELFLDR_INVALID_RELOCATION_OFFSET (-639) 788 #define VERR_LDRELF_INVALID_RELOCATION_OFFSET (-639) 789 /** The ELF loader didn't find the symbol/string table for the image. */ 790 #define VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS (-640) 789 791 /** @}*/ 790 792 trunk/src/VBox/Runtime/ldrELFRelocatable.cpp.h
r2981 r3022 283 283 * Apply the fixup. 284 284 */ 285 AssertMsgReturn(paRels[iRel].r_offset < cbSec, (FMT_ELF_ADDR " " FMT_ELF_SIZE "\n", paRels[iRel].r_offset, cbSec), VERR_ ELFLDR_INVALID_RELOCATION_OFFSET);285 AssertMsgReturn(paRels[iRel].r_offset < cbSec, (FMT_ELF_ADDR " " FMT_ELF_SIZE "\n", paRels[iRel].r_offset, cbSec), VERR_LDRELF_INVALID_RELOCATION_OFFSET); 286 286 #if ELF_MODE == 32 287 287 const Elf_Addr *pAddrR = (const Elf_Addr *)(pu8SecBaseR + paRels[iRel].r_offset); /* Where to read the addend. */ … … 1070 1070 /* 1071 1071 * Are the section headers fine? 1072 * We require there to be symbol & string tables (at least for the time being). 1072 1073 */ 1074 if ( pModElf->iSymSh == ~0U 1075 || pModElf->iStrSh == ~0U) 1076 rc = VERR_LDRELF_NO_SYMBOL_OR_NO_STRING_TABS; 1073 1077 if (RT_SUCCESS(rc)) 1074 1078 {

