aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-11-16 13:29:59 +0100
committerMichael Matz <matz@suse.de>2017-11-16 13:29:59 +0100
commita8ece0f2ce3d2c2471fc8ddb7109938ecec333f7 (patch)
tree79c883f475dcdefafba24e99f1cd143a5a5dadaa /tccasm.c
parent348dd9f4a68a5a6217142c64070765733af3a8c8 (diff)
downloadtinycc-a8ece0f2ce3d2c2471fc8ddb7109938ecec333f7.tar.gz
tinycc-a8ece0f2ce3d2c2471fc8ddb7109938ecec333f7.tar.bz2
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.
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c2
1 files changed, 0 insertions, 2 deletions
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;