Mercurial > pub > dyncall > dyncall
diff 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 |
line wrap: on
line diff
--- a/portasm/portasm-x64.S Thu Jan 05 11:10:39 2017 +0100 +++ b/portasm/portasm-x64.S Fri Jan 06 00:19:13 2017 +0100 @@ -76,7 +76,7 @@ .text # define BEGIN_ASM # define END_ASM -# include "../autovar/autovar_OS.h" +# include "../autovar/autovar_ABI.h" # if defined (OS_Darwin) # define CSYM(X) _##X # else @@ -154,8 +154,7 @@ # define FLDL(X) fldl X # define SET(K,V) .set K,V # 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