History

Allow PLT/GOT entry for weak static symbol

Thomas Preud'homme committed 9 years ago

Commit dfed9ba1 parent 0bf26281 file · +1 −0Browse files

Unified · Split

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