VirtualBox

Changeset 96015 in vbox


Ignore:
Timestamp:
Aug 4, 2022 1:50:27 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152809
Message:

iprt/asmdefs.mac: Fixed trouble with emitting weak aliases (RT_WITH_NOCRT_ALIASES) for fabs in ELF mode. Also added RT_WITH_NOCRT_UNDERSCORE_ALIASES to enable emitting an additional underscore prefixed alias. bugref:10261

File:
1 edited

Legend:

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

    r95829 r96015  
    460460
    461461
     462;;
     463; Define a label as given, with a '$' prepended to permit using instruction
     464; names like fdiv as labels.
     465%macro SAFE_LABEL 1
     466$%1:
     467%endmacro
    462468
    463469;;
     
    467473global NAME(%1)
    468474%endif
    469 NAME(%1):
     475SAFE_LABEL NAME(%1)
    470476%endmacro
    471477
     
    11141120BEGINPROC_EXPORTED RT_NOCRT(%1)
    11151121  %ifdef ASM_FORMAT_ELF
    1116 global NAME(%1)
     1122   %ifdef RT_WITH_NOCRT_UNDERSCORE_ALIASES
     1123global NAME(_ %+ %1):function
     1124weak NAME(_ %+ %1)
     1125SAFE_LABEL NAME(_ %+ %1)
     1126   %endif
     1127global NAME(%1):function
    11171128weak NAME(%1)
    1118 NAME(%1):
     1129SAFE_LABEL NAME(%1)
    11191130  %else
    11201131GLOBALNAME %1
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