VirtualBox

Changeset 100257 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jun 23, 2023 9:14:27 AM (18 months ago)
Author:
vboxsync
Message:

bldprogs/VBoxDef2LazyLoad: Add support for building with gcc which has a slightly different assembly syntax, bug fixes for the generated code which didn't work previously, bugref:10457 [Add a BEGINCONSTSTRINGS and ENDCONSTSTRINGS macro to make use of the cstring_literals section support]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs-arm.h

    r100253 r100257  
    108108
    109109
     110/** Marks the beginning of a readonly C strings section. */
     111#if defined(__clang__)
     112# define BEGINCONSTSTRINGS .section __TEXT,__cstring,cstring_literals
     113#elif defined(__GNUC__)
     114# define BEGINCONSTSTRINGS .section .rodata
     115#else
     116# error "Port me!"
     117#endif
     118
     119/** Marks the end of a readonly C strings section. */
     120#if defined(__clang__)
     121# define ENDCONSTSTRINGS
     122#elif defined(__GNUC__)
     123# define ENDCONSTSTRINGS
     124#else
     125# error "Port me!"
     126#endif
     127
     128
    110129/**
    111130 * Returns the page address of the given symbol (used with the adrp instruction primarily).
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