From 2650584ac4fd71ae4ed2b4e3da755b890ba0637c Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Tue, 26 Jan 2010 22:55:14 +0100 Subject: 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 --- tcc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tcc.h') 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; -- cgit v1.3.1