summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index d265475..abef591 100644
--- a/main.c
+++ b/main.c
@@ -193,8 +193,11 @@ main(int ac, char *av[])
 		parse(inf, f, data, func);
 	} while (++optind < ac);
 
-	if (!dbg)
+	if (!dbg) {
 		gasemitfin(outf);
+		if (asm == Gaself)
+			fprintf(outf, ".section .note.GNU-stack,\"\",@progbits\n");
+	}
 
 	exit(0);
 }