aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorDetlef Riekenberg <wine.dev@web.de>2010-01-26 22:55:14 +0100
committerDetlef Riekenberg <tcc.dev@web.de>2010-01-26 22:55:14 +0100
commit2650584ac4fd71ae4ed2b4e3da755b890ba0637c (patch)
tree4e9b65389565d23b3899d46883659962957a0bd9 /tcc.h
parent5caf6235cf767682ed1212b3dff44bd59a257cef (diff)
downloadtinycc-2650584ac4fd71ae4ed2b4e3da755b890ba0637c.tar.gz
tinycc-2650584ac4fd71ae4ed2b4e3da755b890ba0637c.tar.bz2
Recognize -Wl,-Bsymbolic
Without -Bsymbolic, a symbol/function in a *.so can be overridden by a symbol/function in the main module. That is the default search order, but not supported by tcc. With -Bsymbolic, the linker tries to resolve a symbol/function in the current module first. The loader in tcc implements this search order. We do not distinguish -Bsymbolic and -Bsymbolic-function -- By by ... Detlef
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 3481f64..124d7e5 100644
--- a/tcc.h
+++ b/tcc.h
@@ -445,6 +445,9 @@ struct TCCState {
/* if true, all symbols are exported */
int rdynamic;
+ /* if true, resolve symbols in the current module first (-Wl,Bsymbolic) */
+ int symbolic;
+
/* if true, only link in referenced objects from archive */
int alacarte_link;