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
10091009 esym->st_value = offset;
10101010
10111011 } else if (s1->output_type == TCC_OUTPUT_MEMORY ||
1012+ ELFW(ST_BIND)(sym->st_info) == STB_WEAK ||
10121013 relocs_info[reloc_type].gotplt_entry == ALWAYS_GOTPLT_ENTRY)
10131014 index = put_elf_sym(s1->dynsym, offset, size, info, 0,
10141015 sym->st_shndx, name);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t