From 2ca6fb25a238842418019a3f9ee8d1beb1327f7e Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 31 Jan 2022 22:03:18 +0100 Subject: shared linkage logic for func/data --- arm64/emit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'arm64') diff --git a/arm64/emit.c b/arm64/emit.c index 9700abe..b25f4f5 100644 --- a/arm64/emit.c +++ b/arm64/emit.c @@ -446,14 +446,10 @@ arm64_emitfn(Fn *fn, FILE *out) Ins *i; E *e; + gasemitlnk(fn->name, &fn->lnk, ".text", out); e = &(E){.f = out, .fn = fn}; framelayout(e); - fprintf(e->f, ".text\n"); - if (e->fn->export) - fprintf(e->f, ".globl %s\n", e->fn->name); - fprintf(e->f, "%s:\n", e->fn->name); - if (e->fn->vararg) { for (n=7; n>=0; n--) fprintf(e->f, "\tstr\tq%d, [sp, -16]!\n", n); -- cgit 1.4.1