diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2022-04-11 14:54:44 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-04-11 14:57:50 +0200 |
commit | 2caa26e388b1c904d2f12fb09f84df7e761d8331 (patch) | |
tree | b5cad31b233e5e93471b442644f4abbf58d73cc2 | |
parent | 3c5cd9fdd099dc13e75383fef302e3ef610b439d (diff) | |
download | roux-2caa26e388b1c904d2f12fb09f84df7e761d8331.tar.gz |
move nx stack annotation to gas.c
-rw-r--r-- | gas.c | 2 | ||||
-rw-r--r-- | main.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gas.c b/gas.c index 4ac42be..865edba 100644 --- a/gas.c +++ b/gas.c @@ -141,6 +141,8 @@ gasemitfin(FILE *f) int sz, i; double d; + if (gasasm == Gaself) + fprintf(f, ".section .note.GNU-stack,\"\",@progbits\n\n"); if (!stash) return; fprintf(f, "/* floating point constants */\n.data\n"); diff --git a/main.c b/main.c index 71b01f1..2ff9b9c 100644 --- a/main.c +++ b/main.c @@ -188,11 +188,8 @@ main(int ac, char *av[]) fclose(inf); } while (++optind < ac); - if (!dbg) { + if (!dbg) gasemitfin(outf); - if (asmmode == Gaself) - fprintf(outf, ".section .note.GNU-stack,\"\",@progbits\n"); - } exit(0); } |