VirtualBox

Changeset 41646 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jun 11, 2012 11:55:48 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78446
Message:

asmdefs.mac: Set the type and size of procedures when targeting ELF.

File:
1 edited

Legend:

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

    r40826 r41646  
    172172
    173173;;
     174; Global marker which is DECLASM() compatible.
     175%macro GLOBALNAME_EX 2,
     176%ifndef ASM_FORMAT_BIN
     177 %ifdef ASM_FORMAT_ELF
     178global NAME(%1):%2
     179 %else
     180global NAME(%1)
     181 %endif
     182%endif
     183NAME(%1):
     184%endmacro
     185
     186;;
     187; Global exported marker which is DECLASM() compatible.
     188%macro EXPORTEDNAME_EX 2,
     189 %ifdef ASM_FORMAT_PE
     190  export %1=NAME(%1)
     191 %endif
     192 %ifdef __NASM__
     193  %ifdef ASM_FORMAT_OMF
     194   export NAME(%1) NAME(%1)
     195  %endif
     196%endif
     197GLOBALNAME_EX %1, %2
     198%endmacro
     199
     200;;
    174201; Begins a C callable procedure.
    175202%macro BEGINPROC 1
    176 GLOBALNAME %1
     203GLOBALNAME_EX %1, function hidden
    177204%endmacro
    178205
     
    180207; Begins a C callable exported procedure.
    181208%macro BEGINPROC_EXPORTED 1
    182 EXPORTEDNAME %1
     209EXPORTEDNAME_EX %1, function
    183210%endmacro
    184211
     
    187214%macro ENDPROC 1
    188215GLOBALNAME %1_EndProc
     216%ifdef ASM_FORMAT_ELF
     217size NAME(%1) NAME(%1_EndProc) - NAME(%1)
     218%endif
    189219    db  0xCC, 0xCC, 0xCC, 0xCC
    190220%endmacro
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette