VirtualBox

Ignore:
Timestamp:
Sep 11, 2012 11:55:10 PM (12 years ago)
Author:
vboxsync
Message:

Forward ported r78414 from 4.1: Fix VERR_NO_MEMORY loading VMMR0.r0 because of mt.lion executable memory fixes.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp

    r41052 r43303  
    395395extern "C" void OSMalloc(void);
    396396extern "C" void OSlibkernInit(void);
    397 extern "C" int  osrelease;
    398 extern "C" int  ostype;
    399397extern "C" void kdp_set_interface(void);
    400398
     
    743741                    RETURN_VERR_BAD_EXE_FORMAT;
    744742
    745                 if (pSeg->vmaddr != 0)
     743                if (   pSeg->vmaddr != 0
     744                    || !strcmp(pSeg->segname, "__PAGEZERO"))
    746745                {
    747746                    if (pSeg->vmaddr + RT_ALIGN_Z(pSeg->vmsize, RT_BIT_32(12)) < pSeg->vmaddr)
     
    775774                        case S_MOD_TERM_FUNC_POINTERS:
    776775                        case S_COALESCED:
     776                        case S_4BYTE_LITERALS:
    777777                            if (  pSeg->filesize != 0
    778778                                ? paSects[i].offset - pSeg->fileoff >= pSeg->filesize
     
    792792                        case S_SYMBOL_STUBS:
    793793                        case S_INTERPOSING:
    794                         case S_4BYTE_LITERALS:
    795794                        case S_8BYTE_LITERALS:
    796795                        case S_16BYTE_LITERALS:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette