From a8ece0f2ce3d2c2471fc8ddb7109938ecec333f7 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 16 Nov 2017 13:29:59 +0100 Subject: Don't make forard asm symbols static by default fixes the problem in the testcase. A symbolic reference from asm, which remains undefined at the end of processing is always a global reference, not a static (STB_LOCAL) one. This also affected the linux kernel. --- tccasm.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tccasm.c') diff --git a/tccasm.c b/tccasm.c index ac1618a..1e20dc6 100644 --- a/tccasm.c +++ b/tccasm.c @@ -75,8 +75,6 @@ ST_FUNC Sym* get_asm_sym(int name, Sym *csym) sym->type.t &= ~VT_EXTERN; /* Mark that this asm symbol doesn't need to be fed back. */ sym->a.dllimport = 1; - } else { - sym->type.t |= VT_STATIC; } } return sym; -- cgit v1.3.1