# HG changeset patch # User cslag # Date 1483658353 -3600 # Node ID 2bce7629f541415f8b224d8d17897a6331a43b1c # Parent da1d79ed343614c0b9a3e71fa3e61876ba5ac7ff - "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 diff -r da1d79ed3436 -r 2bce7629f541 dyncall/dyncall_call_arm32_arm.S --- a/dyncall/dyncall_call_arm32_arm.S Thu Jan 05 11:10:39 2017 +0100 +++ b/dyncall/dyncall_call_arm32_arm.S Fri Jan 06 00:19:13 2017 +0100 @@ -34,7 +34,6 @@ dcCall_arm32_arm(DCpointer target, DCpointer argv, DCsize size); This Call Kernel works across multiple OS. - It has been tested on Nintendo DS, Linux and Darwin(iOS). */ diff -r da1d79ed3436 -r 2bce7629f541 portasm/portasm-x64.S --- 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 diff -r da1d79ed3436 -r 2bce7629f541 portasm/portasm-x86.S --- 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