From 1dd6842654c8f8f6bf1a94364f0fd23ed10cc7e1 Mon Sep 17 00:00:00 2001 From: Vlad Vissoultchev Date: Tue, 14 May 2019 22:34:28 +0300 Subject: [PATCH] Don't drop asm_label hack on external symbols for win32 DLL exports --- tccgen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tccgen.c b/tccgen.c index 682b203..0445144 100644 --- a/tccgen.c +++ b/tccgen.c @@ -1001,6 +1001,7 @@ static Sym *external_sym(int v, CType *type, int r, AttributeDef *ad) /* push forward reference */ s = sym_push(v, type, r | VT_CONST | VT_SYM, 0); s->a = ad->a; + s->asm_label = ad->asm_label; s->sym_scope = 0; } else { if (s->type.ref == func_old_type.ref) {