Mercurial > pub > dyncall > dyncall
diff portasm/portasm-x86.S @ 181:37e1ddcb25f1
- removed .note.GNU-stack hint for openbsd, b/c of it always being interpreted as "need execstack" and not needed, b/c of way saner defaults on OpenBSD
author | cslag |
---|---|
date | Fri, 10 Feb 2017 12:15:35 +0100 |
parents | 2bce7629f541 |
children | 2f6e0dd03bed |
line wrap: on
line diff
--- a/portasm/portasm-x86.S Fri Feb 10 01:28:47 2017 +0100 +++ b/portasm/portasm-x86.S Fri Feb 10 12:15:35 2017 +0100 @@ -126,7 +126,8 @@ # define FLDL(X) fldl X # define ADD(A,B) add A,B # define LOCAL(X) .X -# if defined(ABI_ELF) && !defined(CC_SUN) +# if defined(ABI_ELF) && !defined(CC_SUN)/*syntax error*/ && !defined(OS_OpenBSD)/*does this by default, and better*/ +/* explicitly passing no args to mark stack nx */ # define SECTION_NOTE_NXSTACK .section .note.GNU-stack,"",@progbits # else # define SECTION_NOTE_NXSTACK