From 0bd128205979f59f3bbe6ee7cb98599a5088d0d0 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 31 Mar 2014 05:36:12 +0200 Subject: x86-64: shared libs improvement This correctly resolves local references to global functions from shared libs to their PLT slot (instead of directly to the target symbol), so that interposition works. This is still not 100% conforming (executables don't export symbols that are also defined in linked shared libs, as they must), but normal shared lib situations work. --- tcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 5ab50d6..f508097 100644 --- a/tcc.h +++ b/tcc.h @@ -522,7 +522,7 @@ typedef struct ASMOperand { struct sym_attr { unsigned long got_offset; - unsigned char has_plt_entry:1; + unsigned long plt_offset; #ifdef TCC_TARGET_ARM unsigned char plt_thumb_stub:1; #endif -- cgit v1.3.1