- Timestamp:
- Jun 23, 2023 11:03:48 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r100229 r100276 1836 1836 endif 1837 1837 else # ifn1of ($(KBUILD_TARGET_ARCH), amd64 x86) 1838 VBOX_ASTOOL =# No tool, just use the compiler one.1839 VBOX_LDR_FMT_2_FLAGS.elf := -DASM_FORMAT_ELF1838 VBOX_ASTOOL = $(VBOX_GCC_TOOL) 1839 VBOX_LDR_FMT_2_FLAGS.elf := -DASM_FORMAT_ELF 1840 1840 VBOX_LDR_FMT_2_FLAGS.macho := -DASM_FORMAT_MACHO 1841 VBOX_LDR_FMT_2_FLAGS.pe := -DASM_FORMAT_PE1842 VBOX_ASFLAGS := -g $(VBOX_LDR_FMT_2_FLAGS.$(VBOX_LDR_FMT))1843 VBOX_ASFLAGS32 := -g $(VBOX_LDR_FMT_2_FLAGS.$(VBOX_LDR_FMT32))1844 VBOX_ASFLAGS64 := -g $(VBOX_LDR_FMT_2_FLAGS.$(VBOX_LDR_FMT64))1841 VBOX_LDR_FMT_2_FLAGS.pe := -DASM_FORMAT_PE 1842 VBOX_ASFLAGS := -g $(VBOX_LDR_FMT_2_FLAGS.$(VBOX_LDR_FMT)) 1843 VBOX_ASFLAGS32 := -g $(VBOX_LDR_FMT_2_FLAGS.$(VBOX_LDR_FMT32)) 1844 VBOX_ASFLAGS64 := -g $(VBOX_LDR_FMT_2_FLAGS.$(VBOX_LDR_FMT64)) 1845 1845 if1of ($(KBUILD_TARGET_ARCH), sparc32 sparc64) 1846 VBOX_ASFLAGS += -m$(VBOX_HC_ARCH_BITS)1846 VBOX_ASFLAGS += -m$(VBOX_HC_ARCH_BITS) 1847 1847 VBOX_ASFLAGS32 += -m32 1848 1848 VBOX_ASFLAGS64 += -m64 -
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.