For this question: version-script and hidden visibility
I saw this comment:
Visibility annotations are preferred to linker scripts as they allow more aggressive optimization by compilers. Scripts are still needed for full trimming of external library interface due to issues in libgcc and ld. –
yugr
Oct 5, 2018 at 21:32
Sorry, I don't know how to contact yugr directly, but I am really curious about what are the issues in libgcc and ld to make us still need version scripts for full trimming even if the C++ code already have the appropriate visibility annotations and compiled with -fvisibility=hidden
?
Is there an simple example?
Thank you.