... such as 'int baz;' in two files at the same time
Unified · Split
| @@ -233,7 +233,8 @@ static int add_elf_sym(Section *s, unsigned long value, unsigned long size, · 232 unmodified lines | |||
| 233 | /* weak is ignored if already global */ | 233 | /* weak is ignored if already global */ |
| 234 | } else if (sym_vis == STV_HIDDEN || sym_vis == STV_INTERNAL) { | 234 | } else if (sym_vis == STV_HIDDEN || sym_vis == STV_INTERNAL) { |
| 235 | /* ignore hidden symbols after */ | 235 | /* ignore hidden symbols after */ |
| 236 | } else if (esym->st_shndx == SHN_COMMON && sh_num < SHN_LORESERVE) { | 236 | } else if (esym->st_shndx == SHN_COMMON |
| 237 | && (sh_num < SHN_LORESERVE || sh_num == SHN_COMMON)) { | ||
| 237 | /* gr: Happens with 'tcc ... -static tcctest.c' on e.g. Ubuntu 6.01 | 238 | /* gr: Happens with 'tcc ... -static tcctest.c' on e.g. Ubuntu 6.01 |
| 238 | No idea if this is the correct solution ... */ | 239 | No idea if this is the correct solution ... */ |
| 239 | goto do_patch; | 240 | goto do_patch; |