From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id AD2EC4696C3 for ; Sat, 18 Apr 2020 02:48:45 +0300 (MSK) From: Vladislav Shpilevoy Date: Sat, 18 Apr 2020 01:48:41 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 0/2] Unhide symbols List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, tsafin@tarantool.org The patchset makes Tarantool stop hiding not explicitly exported symbols. It means, all FFI and public C API related symbols are still always exported. All the other symbols may be exported, or may be not. That feature was requested solely by Mons. To make the needed symbols visible the hack with function addresses was returned back, like it was before https://github.com/tarantool/tarantool/commit/4c4c1ccbe422e1420ce0c0b36194fc61bb857ed4, but with 0 dependencies in the export file. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-2971-symbols-v2 Issue: https://github.com/tarantool/tarantool/issues/2971 @ChangeLog - Symbols of tarantool executable are not masked anymore. Some private symbols may become visible and available for FFI and dlopen() + dlsym() (gh-2971). Changes in v2: - All exports are moved to one file for simplicity. Vladislav Shpilevoy (2): cmake: remove double usage of some source files cmake: remove dynamic-list linker option .gitignore | 1 - extra/exports | 404 ---------------- src/CMakeLists.txt | 57 +-- src/box/CMakeLists.txt | 7 +- src/exports.c | 511 ++++++++++++++++++++ src/lib/small | 2 +- src/main.cc | 5 + test/box/gh-2971-symbol-visibility.result | 22 + test/box/gh-2971-symbol-visibility.test.lua | 14 + 9 files changed, 563 insertions(+), 460 deletions(-) delete mode 100644 extra/exports create mode 100644 src/exports.c create mode 100644 test/box/gh-2971-symbol-visibility.result create mode 100644 test/box/gh-2971-symbol-visibility.test.lua -- 2.21.1 (Apple Git-122.3)