VirtualBox

Changeset 46855 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jun 28, 2013 3:02:41 AM (11 years ago)
Author:
vboxsync
Message:

iprt/asmdefs.mac: Working towards working import handling, at last... Mach-O adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs.mac

    r46558 r46855  
    113113; Mangles the given C name so it will _import_ the right symbol.
    114114%ifdef ASM_FORMAT_PE
    115 %define IMPNAME(name)   __imp_ %+ NAME(name)
    116 %else
    117 %define IMPNAME(name)   NAME(name)
     115 %define IMPNAME(name)  __imp_ %+ NAME(name)
     116%else
     117 %define IMPNAME(name)  NAME(name)
    118118%endif
    119119
     
    129129 %define IMP(name)      IMPNAME(name)
    130130%endif
     131
     132;;
     133; Declares an imported object for use with IMP2.
     134; @note May change the current section!
     135%macro EXTERN_IMP2 1
     136    extern IMPNAME(%1)
     137    BEGINDATA
     138 %ifdef ASM_FORMAT_MACHO
     139    g_Imp2_ %+ %1:  RTCCPTR_DEF IMPNAME(%1)
     140 %endif
     141%endmacro
    131142
    132143;;
     
    147158 %endif
    148159%elifdef ASM_FORMAT_MACHO
    149  %ifdef RT_ARCH_AMD64
    150   %define IMP2(name)    qword [IMPNAME(name) wrt rip]
    151  %else
    152   %define IMP2(name)    IMPNAME(name)
    153  %endif
     160 %define IMP2(name)     RTCCPTR_PRE [g_Imp2_ %+ name xWrtRIP]
    154161%endif
    155162%ifndef IMP2
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