Pre-link static binaries/remove
Jan Beulich
jbeulich@suse.com
Tue Nov 11 15:09:06 GMT 2025
On 11.11.2025 11:58, Thomas Richter wrote:
> is there a possibility to remove from a static library (not from a .so)
> all symbols marked as "visibility ("hidden")"? The idea would be some
> sort of "pre-linking" step that would resolve all symbols cross-wise
> that are defined within the static library, and only retain those that
> are explicitly marked with "visibility ("default")".
>
> This does work for dynamic link libraries, but I wonder whether there is
> a way to do so for static libraries as well.
Did you see https://sourceware.org/pipermail/binutils/2025-October/144938.html?
Jan
More information about the Binutils
mailing list