summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gas.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas.c b/gas.c
index d339f3e..6d89a89 100644
--- a/gas.c
+++ b/gas.c
@@ -98,6 +98,8 @@ gasemitfin(FILE *f)
 	int sz, i;
 	double d;
 
+	fprintf(f, ".section .note.GNU-stack,\"\",@progbits\n");
+
 	if (!stash)
 		return;
 	fprintf(f, "/* floating point constants */\n.data\n");
@@ -126,5 +128,4 @@ gasemitfin(FILE *f)
 		stash = b->link;
 		free(b);
 	}
-	fprintf(f, ".section .note.GNU-stack,\"\",@progbits\n");
 }