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

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Mon Apr 13 17:21:10 MSK 2020


On 13/04/2020 16:15, Konstantin Osipov wrote:
> * Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [20/04/13 16:57]:
>>> Basically the right fix is to remove this link option, not come up
>>> with 43 patches.
>>
>> It is not enough. Static library symbols are not exported, if they
>> are not used. Linker drops them. It means almost all needed symbols
>> are removed when you just remove the option.
>>
>> Alternative is to use option all_load on clang (and whole-archive on
>> gcc), but that exports *all* symbols and *all* functions. Even the
>> ones which really are not needed, but are just a part of some library,
>> which we don't want to trim.
> 
> This is a single user feature. That single user was happy with the
> previous implementation, using automatic exports. Clang, Mac OS X
> or unstable export lists were not relevant to him, so a tiny patch
> reverting linker option would suffice.

You are not listening to me. This is not about Mac only.

> You are trying to make it "better" for that user. As I wrote
> earlier, this won't work, since nobody's going to maintain these
> lists going forward.

It was maintained for years in extra/exports.


More information about the Tarantool-patches mailing list