changeset 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 da1d79ed3436
children 2fa600ea50e7
files dyncall/dyncall_call_arm32_arm.S portasm/portasm-x64.S portasm/portasm-x86.S
diffstat 3 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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).
 
 */
 
--- 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
--- 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