From aa561d70119accb59a17f10f9ba69076fb0ab516 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 26 Mar 2014 22:13:20 +0800 Subject: 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. --- tcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.h') 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 -- cgit v1.3.1