VirtualBox

Ignore:
Timestamp:
Oct 6, 2018 7:39:41 PM (6 years ago)
Author:
vboxsync
Message:

IPRT: More adjustments to the LX and Mach-O loader code from kStuff. bugref:9232

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrMachO.cpp

    r74641 r74643  
    508508 * @param   pRdr            The file reader.
    509509 * @param   offImage        The image header (FAT fun).
     510 * @param   fOpenFlags      RTLDR_O_XXX.
    510511 * @param   pcSegments      Where to store the segment count.
    511512 * @param   pcSegments      Where to store the section count.
     
    514515 * @param   pLinkAddress    Where to store the image link address (i.e. the
    515516 *                          lowest segment address).
    516  */
    517 static int  kldrModMachOPreParseLoadCommands(uint8_t *pbLoadCommands, const mach_header_32_t *pHdr, PRTLDRREADER pRdr, RTFOFF   offImage,
    518                                              uint32_t fOpenFlags, uint32_t *pcSegments, uint32_t *pcSections, uint32_t *pcbStringPool,
    519                                              bool *pfCanLoad, PRTLDRADDR pLinkAddress, uint8_t *puEffFileType)
     517 * @param   puEffFileType   Where to store the effective file type.
     518 */
     519static int kldrModMachOPreParseLoadCommands(uint8_t *pbLoadCommands, const mach_header_32_t *pHdr, PRTLDRREADER pRdr,
     520                                            RTFOFF offImage, uint32_t fOpenFlags, uint32_t *pcSegments, uint32_t *pcSections,
     521                                            uint32_t *pcbStringPool, bool *pfCanLoad, PRTLDRADDR pLinkAddress,
     522                                            uint8_t *puEffFileType)
    520523{
    521524    union
     
    25302533 * @returns IPRT status code.
    25312534 * @param   pThis           The Mach-O module interpreter instance.
     2535 * @param   BaseAddress     The module base address.
    25322536 * @param   pfnGetImport    The callback for resolving an imported symbol.
    25332537 * @param   pvUser          User argument to the callback.
     
    26792683 * @param   pvMapping       The mapping to fixup.
    26802684 * @param   NewBaseAddress  The address to fixup the mapping to.
    2681  * @param   OldBaseAddress  The address the mapping is currently fixed up to.
    26822685 */
    26832686static int  kldrModMachOObjDoFixups(PKLDRMODMACHO pThis, void *pvMapping, RTLDRADDR NewBaseAddress)
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