aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2014-03-31 05:36:12 +0200
committerMichael Matz <matz@suse.de>2014-03-31 05:36:12 +0200
commit0bd128205979f59f3bbe6ee7cb98599a5088d0d0 (patch)
tree285c82c71ee33941abb2017eab257d41cf002660 /tcc.h
parent080ad7e62acdf6ccd47927a4c289ff2ae21e83df (diff)
downloadtinycc-0bd128205979f59f3bbe6ee7cb98599a5088d0d0.tar.gz
tinycc-0bd128205979f59f3bbe6ee7cb98599a5088d0d0.tar.bz2
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.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h2
1 files changed, 1 insertions, 1 deletions
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