Changeset 85339 in vbox
- Timestamp:
- Jul 14, 2020 1:29:53 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/iprt/formats/mach-o.h (modified) (1 diff)
-
src/VBox/Runtime/common/ldr/ldrMachO.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/formats/mach-o.h
r84509 r85339 365 365 #define SG_NORELOC UINT32_C(0x00000004) 366 366 #define SG_PROTECTED_VERSION_1 UINT32_C(0x00000008) 367 #define SG_READ_ONLY UINT32_C(0x00000010) /**< Make it read-only after applying fixups. @since 10.14 */ 367 368 368 369 /* maxprot/initprot */ -
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.

