Support GOT32 and PLT32 reloc for same symbol
commitdc8ea93b13faefb565fb937f8b8c08c40c063549
authorThomas Preud'homme <robotux@celest.fr>
Tue, 25 Mar 2014 14:35:11 +0000 (25 22:35 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Tue, 25 Mar 2014 14:35:11 +0000 (25 22:35 +0800)
tree5c5311364fc646d4871e07291b6fa9cfb8ee8869
parent078ba241d9c24b15f734b4959f877519d7098140
Support GOT32 and PLT32 reloc for same symbol

Some symbol (such as __gmon_start__ but this one does not matter to tcc)
can have both a R_386_GOT32 and R_386_PLT32 relocation. It is thus not
enough to test if a GOT reloc was already done when deciding whether to
return early from put_got_entry.
tccelf.c