Changeset 46862 in vbox
- Timestamp:
- Jun 28, 2013 10:52:33 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86824
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/VBoxTpG.cpp
r46558 r46862 783 783 */ 784 784 bool const fWin64 = g_cBits == 64 && (!strcmp(g_pszAssemblerFmtVal, "win64") || !strcmp(g_pszAssemblerFmtVal, "pe64")); 785 bool const fMachO64 = g_cBits == 64 && !strcmp(g_pszAssemblerFmtVal, "macho64"); 786 bool const fMachO32 = g_cBits == 32 && !strcmp(g_pszAssemblerFmtVal, "macho32"); 785 bool const fElf = !strcmp(g_pszAssemblerFmtVal, "elf32") || !strcmp(g_pszAssemblerFmtVal, "elf64"); 787 786 ScmStreamPrintf(pStrm, 788 787 "\n" … … 791 790 ";\n" 792 791 "BEGINCODE\n" 793 "extern %sNAME(%s)\n", 794 g_fProbeFnImported ? "IMP" : "", 795 g_pszProbeFnName); 796 if (fMachO64 && g_fProbeFnImported && !g_fPic) 792 ); 793 if (g_fProbeFnImported) 797 794 ScmStreamPrintf(pStrm, 798 " g_pfnVtgProbeFn:\n"799 " dq NAME(%s)\n",795 "EXTERN_IMP2 %s\n" 796 "BEGINCODE ; EXTERN_IMP2 changes section\n", 800 797 g_pszProbeFnName); 798 else 799 ScmStreamPrintf(pStrm, "extern NAME(%s)\n", g_pszProbeFnName); 801 800 802 801 RTListForEach(&g_ProviderHead, pProvider, VTGPROVIDER, ListEntry) … … 836 835 */ 837 836 if (g_cBits == 32) 838 ScmStreamPrintf(pStrm, g_fPic ?837 ScmStreamPrintf(pStrm, g_fPic && fElf ? 839 838 " jmp %s wrt ..plt\n" 840 839 : g_fProbeFnImported ? … … 844 843 " jmp NAME(%s)\n" 845 844 , g_pszProbeFnName); 846 else if (fMachO64 && g_fProbeFnImported)847 ScmStreamPrintf(pStrm,848 " jmp [g_pfnVtgProbeFn wrt rip]\n");849 845 else 850 ScmStreamPrintf(pStrm, g_fPic ?846 ScmStreamPrintf(pStrm, g_fPic && fElf ? 851 847 " jmp [rel %s wrt ..got]\n" 852 848 : g_fProbeFnImported ?
Note:
See TracChangeset
for help on using the changeset viewer.