skip nx stack annotation on osx
This commit is contained in:
parent
6a69210b0f
commit
52c8eb48ee
2 changed files with 4 additions and 3 deletions
2
gas.c
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");
|
||||
|
|
5
main.c
5
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue