patchelf icon indicating copy to clipboard operation
patchelf copied to clipboard

Add a way to change visibility of symbols

Open ensc opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

It would be nice when visibility of symbols can be changed. This allows to fix e.g. libraries which export every symbol publicly (hello rust/cargo...).

Describe the solution you'd like

E.g. when

$ nm -D libbar.so
0000000000011920 T bar_func
00000000000119b0 T foo_func

A patchelf --hide-symbol foo_func libbar.so would change that to

$ nm -D libbar.so
0000000000011920 T bar_func
00000000000119b0 t foo_func

ensc avatar May 29 '24 10:05 ensc