Changeset 100276 in vbox for trunk/include
- Timestamp:
- Jun 23, 2023 11:03:48 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asmdefs-arm.h
r100275 r100276 49 49 */ 50 50 51 /** @todo Should the selection be done by object format (ELF, MachO, ...) maybe?. */52 53 51 /** Marks the beginning of a code section. */ 54 #if defined(__clang__)52 #ifdef ASM_FORMAT_MACHO 55 53 # define BEGINCODE .section __TEXT,__text,regular,pure_instructions 56 #elif defined( __GNUC__)54 #elif defined(ASM_FORMAT_ELF) 57 55 # define BEGINCODE .section .text 58 56 #else … … 61 59 62 60 /** Marks the end of a code section. */ 63 #if defined(__clang__)61 #if ASM_FORMAT_MACHO 64 62 # define ENDCODE 65 #elif defined( __GNUC__)63 #elif defined(ASM_FORMAT_ELF) 66 64 # define ENDCODE 67 65 #else … … 71 69 72 70 /** Marks the beginning of a data section. */ 73 #if defined(__clang__)71 #if ASM_FORMAT_MACHO 74 72 # define BEGINDATA .section __DATA,__data 75 #elif defined( __GNUC__)73 #elif defined(ASM_FORMAT_ELF) 76 74 # define BEGINDATA .section .data 77 75 #else … … 80 78 81 79 /** Marks the end of a data section. */ 82 #if defined(__clang__)80 #if ASM_FORMAT_MACHO 83 81 # define ENDDATA 84 #elif defined( __GNUC__)82 #elif defined(ASM_FORMAT_ELF) 85 83 # define ENDDATA 86 84 #else … … 90 88 91 89 /** Marks the beginning of a readonly data section. */ 92 #if defined(__clang__)90 #if ASM_FORMAT_MACHO 93 91 # define BEGINCONST .section __RODATA,__rodata 94 #elif defined( __GNUC__)92 #elif defined(ASM_FORMAT_ELF) 95 93 # define BEGINCONST .section .rodata 96 94 #else … … 99 97 100 98 /** Marks the end of a readonly data section. */ 101 #if defined(__clang__)99 #if ASM_FORMAT_MACHO 102 100 # define ENDCONST 103 #elif defined( __GNUC__)101 #elif defined(ASM_FORMAT_ELF) 104 102 # define ENDCONST 105 103 #else … … 109 107 110 108 /** Marks the beginning of a readonly C strings section. */ 111 #if defined(__clang__)109 #if ASM_FORMAT_MACHO 112 110 # define BEGINCONSTSTRINGS .section __TEXT,__cstring,cstring_literals 113 #elif defined( __GNUC__)111 #elif defined(ASM_FORMAT_ELF) 114 112 # define BEGINCONSTSTRINGS .section .rodata 115 113 #else … … 118 116 119 117 /** Marks the end of a readonly C strings section. */ 120 #if defined(__clang__)118 #if ASM_FORMAT_MACHO 121 119 # define ENDCONSTSTRINGS 122 #elif defined( __GNUC__)120 #elif defined(ASM_FORMAT_ELF) 123 121 # define ENDCONSTSTRINGS 124 122 #else
Note:
See TracChangeset
for help on using the changeset viewer.