comparison portasm/portasm-x64.S @ 168:2bce7629f541

- "tag" also non-linux assembly files with .note.GNU-stack, to mark .o files generated from manual assembly code as not needing an executable stack (still only for x* archs) - removed some outdated/misleading comment
author cslag
date Fri, 06 Jan 2017 00:19:13 +0100
parents d5705f226298
children 37e1ddcb25f1
comparison
equal deleted inserted replaced
167:da1d79ed3436 168:2bce7629f541
74 #else 74 #else
75 /* GNU/SunPro Assembler AT&T Syntax */ 75 /* GNU/SunPro Assembler AT&T Syntax */
76 .text 76 .text
77 # define BEGIN_ASM 77 # define BEGIN_ASM
78 # define END_ASM 78 # define END_ASM
79 # include "../autovar/autovar_OS.h" 79 # include "../autovar/autovar_ABI.h"
80 # if defined (OS_Darwin) 80 # if defined (OS_Darwin)
81 # define CSYM(X) _##X 81 # define CSYM(X) _##X
82 # else 82 # else
83 # define CSYM(X) X 83 # define CSYM(X) X
84 # endif 84 # endif
152 # define JNE(X) jne X 152 # define JNE(X) jne X
153 # define FLDS(X) flds X 153 # define FLDS(X) flds X
154 # define FLDL(X) fldl X 154 # define FLDL(X) fldl X
155 # define SET(K,V) .set K,V 155 # define SET(K,V) .set K,V
156 # define LOCAL(X) .X 156 # define LOCAL(X) .X
157 /* @@@ extend following to probably *all* ELF targets - needs testing, though */ 157 # if defined(ABI_ELF) && !defined(CC_SUN)
158 # if defined(OS_Linux)
159 # define SECTION_NOTE_NXSTACK .section .note.GNU-stack,"",@progbits 158 # define SECTION_NOTE_NXSTACK .section .note.GNU-stack,"",@progbits
160 # else 159 # else
161 # define SECTION_NOTE_NXSTACK 160 # define SECTION_NOTE_NXSTACK
162 # endif 161 # endif
163 #endif 162 #endif