Simplify and fix GOT32 + PLT32 reloc commit

Introduce a new attribute to check the existence of a PLT entry for a
given symbol has the presence of an entry for that symbol in the dynsym
section is not proof that a PLT entry exists.

This fixes commit dc8ea93b13.
This commit is contained in:
Thomas Preud'homme
2014-03-26 22:13:20 +08:00
parent bed865275d
commit aa561d7011
2 changed files with 3 additions and 3 deletions

1
tcc.h
View File

@ -522,6 +522,7 @@ typedef struct ASMOperand {
struct sym_attr {
unsigned long got_offset;
unsigned char has_plt_entry:1;
#ifdef TCC_TARGET_ARM
unsigned char plt_thumb_stub:1;
#endif