VirtualBox

Ignore:
Timestamp:
Oct 16, 2018 2:58:07 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/ldr: Still need home-made GOT to load amd64 kext images, compiler/linker still cannot seem to be convinced it needs to do indirect symbol access. bugref:9232

File:
1 edited

Legend:

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

    r74856 r74857  
    411411            break;
    412412        case CPU_TYPE_X86_64:
    413             fMakeGot = s.Hdr32.filetype == MH_OBJECT;
     413            fMakeGot = s.Hdr32.filetype == MH_OBJECT || s.Hdr32.filetype == MH_KEXT_BUNDLE;
    414414            cbJmpStub = fMakeGot ? 8 : 0;
    415415            break;
     
    35163516 * @param   cFixups         Number of fixups.
    35173517 * @param   pauVirginData   The virgin data / addends.  Parallel to paFixups.
    3518  * @param   pFixupSect      The section being fixed up.
    35193518 * @param   paSyms          Pointer to the symbol table.
    35203519 * @param   cSyms           Number of symbols.
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