diff options
| author | Michael Matz <matz@suse.de> | 2017-11-16 13:29:59 +0100 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2017-11-16 13:29:59 +0100 |
| commit | a8ece0f2ce3d2c2471fc8ddb7109938ecec333f7 (patch) | |
| tree | 79c883f475dcdefafba24e99f1cd143a5a5dadaa /tccasm.c | |
| parent | 348dd9f4a68a5a6217142c64070765733af3a8c8 (diff) | |
| download | tinycc-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |
