Unified · Split
| @@ -1009,6 +1009,7 @@ static unsigned long put_got_entry(TCCState *s1, int dyn_reloc_type, · 1008 unmodified lines | ||
| 1009 | 1009 | esym->st_value = offset; |
| 1010 | 1010 | |
| 1011 | 1011 | } else if (s1->output_type == TCC_OUTPUT_MEMORY || |
| 1012 | + ELFW(ST_BIND)(sym->st_info) == STB_WEAK || | |
| 1012 | 1013 | relocs_info[reloc_type].gotplt_entry == ALWAYS_GOTPLT_ENTRY) |
| 1013 | 1014 | index = put_elf_sym(s1->dynsym, offset, size, info, 0, |
| 1014 | 1015 | sym->st_shndx, name); |