qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 52c8eb48ee86c8fd0e44570c31c7de28dea63cf3
parent 6a69210b0faf33ad4feb6adc97d094022c520978
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Thu,  9 Sep 2021 14:35:17 +0200

skip nx stack annotation on osx

Diffstat:
Mgas.c | 2--
Mmain.c | 5++++-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gas.c b/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"); diff --git 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); }