瀏覽代碼

skip nx stack annotation on osx

Quentin Carbonneaux 4 年之前
父節點
當前提交
52c8eb48ee
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 0 2
      gas.c
  2. 4 1
      main.c

+ 0 - 2
gas.c

@@ -98,8 +98,6 @@ 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");

+ 4 - 1
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);
 }