Mercurial > pub > dyncall > dyncall
diff portasm/portasm-x86.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 |
line wrap: on
line diff
--- a/portasm/portasm-x86.S Thu Jan 05 11:10:39 2017 +0100 +++ b/portasm/portasm-x86.S Fri Jan 06 00:19:13 2017 +0100 @@ -69,7 +69,7 @@ .text # define BEGIN_ASM # define END_ASM -# include "../autovar/autovar_OS.h" +# include "../autovar/autovar_ABI.h" # if defined(OS_Win32) || defined(OS_Cygwin) || defined(OS_MinGW) || defined(OS_Darwin) || defined(OS_Minix) # define CSYM(X) _##X # else @@ -126,8 +126,7 @@ # define FLDL(X) fldl X # define ADD(A,B) add A,B # define LOCAL(X) .X -/* @@@ extend following to probably *all* ELF targets - needs testing, though */ -# if defined(OS_Linux) +# if defined(ABI_ELF) && !defined(CC_SUN) # define SECTION_NOTE_NXSTACK .section .note.GNU-stack,"",@progbits # else # define SECTION_NOTE_NXSTACK