Changeset 75053 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Oct 24, 2018 7:08:56 PM (6 years ago)
- Location:
- trunk/src/VBox/Runtime/common/ldr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrEx.cpp
r74654 r75053 45 45 #include "internal/ldr.h" 46 46 47 #if def LDR_ONLY_PE47 #if defined(LDR_ONLY_PE) || defined(LDR_ONLY_MACHO) 48 48 # undef LDR_WITH_PE 49 49 # undef LDR_WITH_ELF … … 54 54 # undef LDR_WITH_MZ 55 55 # undef LDR_WITH_AOUT 56 # define LDR_WITH_PE 56 # ifdef LDR_ONLY_PE 57 # define LDR_WITH_PE 58 # endif 59 # ifdef LDR_ONLY_MACHO 60 # define LDR_WITH_MACHO 61 # endif 57 62 #endif 58 63 -
trunk/src/VBox/Runtime/common/ldr/ldrMachO.cpp
r74857 r75053 782 782 case S_MOD_INIT_FUNC_POINTERS: \ 783 783 /** @todo this requires a query API or flag... (e.g. C++ constructors) */ \ 784 RTLDRMODMACHO_CHECK_RETURN(fOpenFlags & RTLDR_O_FOR_DEBUG, \784 RTLDRMODMACHO_CHECK_RETURN(fOpenFlags & (RTLDR_O_FOR_DEBUG | RTLDR_O_FOR_VALIDATION), \ 785 785 VERR_LDRMACHO_UNSUPPORTED_INIT_SECTION); \ 786 786 RT_FALL_THRU(); \ 787 787 case S_MOD_TERM_FUNC_POINTERS: \ 788 788 /** @todo this requires a query API or flag... (e.g. C++ destructors) */ \ 789 RTLDRMODMACHO_CHECK_RETURN(fOpenFlags & RTLDR_O_FOR_DEBUG, \789 RTLDRMODMACHO_CHECK_RETURN(fOpenFlags & (RTLDR_O_FOR_DEBUG | RTLDR_O_FOR_VALIDATION), \ 790 790 VERR_LDRMACHO_UNSUPPORTED_TERM_SECTION); \ 791 791 RTLDRMODMACHO_CHECK_RETURN(!pSect->reserved1, VERR_LDRMACHO_BAD_SECTION); \ … … 1199 1199 case LC_MAIN: /** @todo parse this and find and entry point or smth. */ 1200 1200 /** @todo valid command size. */ 1201 if (!(fOpenFlags & RTLDR_O_FOR_DEBUG))1201 if (!(fOpenFlags & (RTLDR_O_FOR_DEBUG | RTLDR_O_FOR_VALIDATION))) 1202 1202 RTLDRMODMACHO_FAILED_RETURN(RTErrInfoSetF(pErrInfo, VERR_LDRMACHO_UNSUPPORTED_LOAD_COMMAND, 1203 1203 "cmd=%#x", u.pLoadCmd->cmd)); -
trunk/src/VBox/Runtime/common/ldr/ldrMemory.cpp
r75049 r75053 278 278 pfnDtor = rtldrRdrMemDefaultDtor; 279 279 else 280 AssertPtrReturn(pfn Read, VERR_INVALID_POINTER);280 AssertPtrReturn(pfnDtor, VERR_INVALID_POINTER); 281 281 282 282 /* The rest of the validations will call the destructor. */
Note:
See TracChangeset
for help on using the changeset viewer.