aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-03-07 01:05:09 -0800
committerJoe Soroka <gits@joesoroka.com>2011-03-07 01:05:09 -0800
commit4fbe3cda330e6ac307c37888777145e7526a7078 (patch)
treec09e27bb0a118d540d543d8bc16f814bc439eebc /tccgen.c
parent8bcb2ae1b262fd94fbc30ebf6f3b9bdd1ae6dc4a (diff)
downloadtinycc-4fbe3cda330e6ac307c37888777145e7526a7078.tar.gz
tinycc-4fbe3cda330e6ac307c37888777145e7526a7078.tar.bz2
use new weaken_symbol() to fix another real-world corner case
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccgen.c b/tccgen.c
index c3456b7..8a50832 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -5600,7 +5600,7 @@ ST_FUNC void decl(int l)
sym = external_sym(v, &type, r, asm_label);
if (type.t & VT_WEAK)
- sym->type.t |= VT_WEAK;
+ weaken_symbol(sym);
if (ad.alias_target) {
Section tsec;