VirtualBox

Changeset 64934 in vbox


Ignore:
Timestamp:
Dec 16, 2016 11:33:47 PM (8 years ago)
Author:
vboxsync
Message:

VBoxDef2LazyLoad.cpp: amd64 fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxDef2LazyLoad.cpp

    r64933 r64934  
    386386            "g_apfnImports:\n");
    387387    for (PMYEXPORT pExp = g_pExpHead; pExp; pExp = pExp->pNext)
    388         fprintf(pOutput,
    389                 "%%ifdef ASM_FORMAT_PE\n"
    390                 " %%ifdef RT_ARCH_X86\n"
    391                 "global __imp_%s\n"
    392                 "__imp_%s:\n"
    393                 " %%else\n"
    394                 "global __imp_%s\n"
    395                 "__imp_%s:\n"
    396                 " %%endif\n"
    397                 "%%endif\n"
    398                 "g_pfn%s RTCCPTR_DEF ___LazyLoad___%s\n"
    399                 "\n",
    400                 pExp->szName,
    401                 pExp->szName,
    402                 pExp->pszUnstdcallName,
    403                 pExp->pszUnstdcallName,
    404                 pExp->pszExportedNm,
    405                 pExp->pszExportedNm);
     388        if (pExp->pszUnstdcallName)
     389            fprintf(pOutput,
     390                    "%%ifdef ASM_FORMAT_PE\n"
     391                    " %%ifdef RT_ARCH_X86\n"
     392                    "global __imp_%s\n"
     393                    "__imp_%s:\n"
     394                    " %%else\n"
     395                    "global __imp_%s\n"
     396                    "__imp_%s:\n"
     397                    " %%endif\n"
     398                    "%%endif\n"
     399                    "g_pfn%s RTCCPTR_DEF ___LazyLoad___%s\n"
     400                    "\n",
     401                    pExp->szName,
     402                    pExp->szName,
     403                    pExp->pszUnstdcallName,
     404                    pExp->pszUnstdcallName,
     405                    pExp->pszExportedNm,
     406                    pExp->pszExportedNm);
     407        else
     408            fprintf(pOutput,
     409                    "%%ifdef ASM_FORMAT_PE\n"
     410                    "global __imp_%s\n"
     411                    "__imp_%s:\n"
     412                    "%%endif\n"
     413                    "g_pfn%s RTCCPTR_DEF ___LazyLoad___%s\n"
     414                    "\n",
     415                    pExp->szName,
     416                    pExp->szName,
     417                    pExp->pszExportedNm,
     418                    pExp->pszExportedNm);
    406419    fprintf(pOutput,
    407420            "RTCCPTR_DEF 0 ; Terminator entry for traversal.\n"
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