[Tarantool-patches] [PATCH 00/43] Unhide symbols

Timur Safin tsafin at tarantool.org
Tue Apr 14 21:01:10 MSK 2020


: Mons will be happy simply if we switch back to default gcc linking
: options, -fvisibility=default, which is basically dropping
: -exported_symbols_list.
: 
: --
: Konstantin Osipov, Moscow, Russia

Nope, this won't work the desired way - linker will get rid of symbol if it's default visible and unreferenced in the executable.

We used to have FFI hack for such case, which was deleted because explicitly exported symbol (via loader list) will be retained in the binary. If we explicitly export them in the code - we will get to the same result - unreferenced/"unused" symbol will be available for external access (e.g. from LuaJIT ffi). 


Timur



More information about the Tarantool-patches mailing list