- Timestamp:
- Oct 6, 2018 7:39:41 PM (6 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r74638 r74643 272 272 IPRT_WITH_OPENSSL \ 273 273 NOFILEID 274 # += LDR_WITH_MACHO 274 ifeq ($(USERNAME),bird) 275 RuntimeR3_DEFS += LDR_WITH_MACHO 276 endif 275 277 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) 276 278 RuntimeR3_DEFS += \ -
trunk/src/VBox/Runtime/common/ldr/ldrLX.cpp
r74642 r74643 546 546 547 547 548 /** @copydoc kLdrModQuerySymbol */549 548 static int kldrModLXQuerySymbol(PRTLDRMODINTERNAL pMod, const void *pvBits, RTLDRADDR BaseAddress, uint32_t iSymbol, 550 549 const char *pchSymbol, size_t cchSymbol, const char *pszVersion, … … 1149 1148 1150 1149 1151 /** @copydoc kLdrModGetImport */1152 1150 static int kldrModLXGetImport(PKLDRMODLX pModLX, const void *pvBits, uint32_t iImport, char *pszName, size_t cchName, 1153 1151 size_t *pcbNeeded) … … 1292 1290 1293 1291 1294 /** @copydoc kLdrModHasDbgInfo */1295 1292 static int kldrModLXHasDbgInfo(PRTLDRMODINTERNAL pMod, const void *pvBits) 1296 1293 { … … 2254 2251 union 2255 2252 { 2256 2257 2253 const uint8_t *pb; 2258 2254 const struct r32_rlc *prlc; … … 2540 2536 * @param pbPage The page in which to apply the fixup. 2541 2537 * @param off Page relative offset of where to apply the offset. 2538 * @param PageAddress The page address. 2539 * @param prlc The relocation record. 2540 * @param iSelector Selector value, -1 if flat. 2542 2541 * @param uValue The target value. 2543 2542 * @param fKind The target kind. -
trunk/src/VBox/Runtime/common/ldr/ldrMachO.cpp
r74641 r74643 508 508 * @param pRdr The file reader. 509 509 * @param offImage The image header (FAT fun). 510 * @param fOpenFlags RTLDR_O_XXX. 510 511 * @param pcSegments Where to store the segment count. 511 512 * @param pcSegments Where to store the section count. … … 514 515 * @param pLinkAddress Where to store the image link address (i.e. the 515 516 * 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 */ 519 static 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) 520 523 { 521 524 union … … 2530 2533 * @returns IPRT status code. 2531 2534 * @param pThis The Mach-O module interpreter instance. 2535 * @param BaseAddress The module base address. 2532 2536 * @param pfnGetImport The callback for resolving an imported symbol. 2533 2537 * @param pvUser User argument to the callback. … … 2679 2683 * @param pvMapping The mapping to fixup. 2680 2684 * @param NewBaseAddress The address to fixup the mapping to. 2681 * @param OldBaseAddress The address the mapping is currently fixed up to.2682 2685 */ 2683 2686 static int kldrModMachOObjDoFixups(PKLDRMODMACHO pThis, void *pvMapping, RTLDRADDR NewBaseAddress)
Note:
See TracChangeset
for help on using the changeset viewer.