Changeset 85339 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jul 14, 2020 1:29:53 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139319
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/ldr/ldrMachO.cpp
r83084 r85339 102 102 #endif 103 103 104 /** @def RTLDRMODMACHO_CHECK_MSG_RETURN 105 * Checks that an expression is true and return if it isn't. 106 * This is a debug aid. 107 */ 108 #ifdef RTLDRMODMACHO_STRICT2 109 # define RTLDRMODMACHO_CHECK_MSG_RETURN(expr, msgargs, rc) AssertMsgReturn(expr, msgargs, rc) 110 #else 111 # define RTLDRMODMACHO_CHECK_MSG_RETURN(expr, msgargs, rc) do { if (RT_LIKELY(expr)) {/* likely */ } else return (rc); } while (0) 112 #endif 113 104 114 /** @def RTLDRMODMACHO_CHECK_RETURN 105 115 * Checks that an expression is true and return if it isn't. … … 710 720 RTLDRMODMACHO_CHECK_RETURN(!(~pSrcSeg->maxprot & pSrcSeg->initprot), \ 711 721 VERR_LDRMACHO_BAD_LOAD_COMMAND); \ 712 RTLDRMODMACHO_CHECK_RETURN(!(pSrcSeg->flags & ~(SG_HIGHVM | SG_FVMLIB | SG_NORELOC | SG_PROTECTED_VERSION_1)), \ 713 VERR_LDRMACHO_BAD_LOAD_COMMAND); \ 722 RTLDRMODMACHO_CHECK_MSG_RETURN(!(pSrcSeg->flags & ~(SG_HIGHVM | SG_FVMLIB | SG_NORELOC | SG_PROTECTED_VERSION_1 | SG_READ_ONLY)), \ 723 ("flags=%#x %s\n", pSrcSeg->flags, pSrcSeg->segname), \ 724 VERR_LDRMACHO_BAD_LOAD_COMMAND); \ 714 725 RTLDRMODMACHO_CHECK_RETURN( pSrcSeg->nsects * sizeof(section_##a_cBits##_t) \ 715 726 <= u.pLoadCmd->cmdsize - sizeof(segment_command_##a_cBits##_t), \
Note:
See TracChangeset
for help on using the changeset viewer.