[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: symbols file: To hide or not to hide...

On Thu, Sep 20, 2012 at 05:34:36PM +0200, Mathieu Malaterre wrote:
>   So I finally managed to get my C++ symbols file generated. However
> before shooting myself in the foot, I'd like to know if I need to
> generate the symbol file using -fvisibility=hidden or not ?
Theoretically, it is much better to export only those symbols you (as the
upstream) actually intend to. Benefits vary from shortening the exports
table to clearly defining the ABI. But if you do that incorrectly,
problems may arise, so it may be better to not do that, especially if you
are not the upstream.

See also http://gcc.gnu.org/wiki/Visibility


Attachment: signature.asc
Description: Digital signature

Reply to: