aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-03-26 22:13:20 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-03-26 23:13:28 +0800
commitaa561d70119accb59a17f10f9ba69076fb0ab516 (patch)
tree1641d7dc0019c31e502f971faea8a01176928532 /tcc.h
parentbed865275db3161375b9b082945323c68c4c5b69 (diff)
downloadtinycc-aa561d70119accb59a17f10f9ba69076fb0ab516.tar.gz
tinycc-aa561d70119accb59a17f10f9ba69076fb0ab516.tar.bz2
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 dc8ea93b13faefb565fb937f8b8c08c40c063549.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 476cdf7..e83e6c0 100644
--- a/tcc.h
+++ b/tcc.h
@@ -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