search for: libsymbols

Displaying 1 result from an estimated 1 matches for "libsymbols".

2016 Apr 29
3
(Orc)JIT and weak symbol resolution
..., (long)interp); // CHECK-NOT: Wrong address return 1; } return 0; } #else # ifdef __CLING__ int Symbols() { # else int main() # endif { return compareAddr(&StaticStuff<int>::s_data);} #endif // ! BUILD_SHARED $ clang++ -shared -fPIC -DBUILD_SHARED symbols.cxx -o libSymbols.so $ clang++ -cc1 -emit-llvm symbols.cxx -o - | lli -load ./libSymbols.so - or $ clang++ -lSymbols symbols.cxx && ./a.out Compiled it's happy: the weak symbol used in main gets resolved to be the one in the binary for both references. That's the behavior I'd expect. The JIT O...