diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-03-07 00:25:27 -0800 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-03-07 00:25:27 -0800 |
| commit | 0f0c2d9c02d357c247f7310908124c39b8625d35 (patch) | |
| tree | 66b499cd032abe24607dd078ae94a8d5457ef91c /tccgen.c | |
| parent | 38cbb40e904f3113ae117278fbbcda0f71f18c92 (diff) | |
| download | tinycc-0f0c2d9c02d357c247f7310908124c39b8625d35.tar.gz tinycc-0f0c2d9c02d357c247f7310908124c39b8625d35.tar.bz2 | |
weak redefinition of a symbol should weaken the original
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5592,6 +5592,9 @@ ST_FUNC void decl(int l) extern */ sym = external_sym(v, &type, r, asm_label); + if (type.t & VT_WEAK) + sym->type.t |= VT_WEAK; + if (ad.alias_target) { Section tsec; Elf32_Sym *esym; |
