Delete dependent shared library from dylib?

I know that I can use the -change option for install_name_tool to change the name of the dependent shared library stored in dylib, but is there any way to remove the dependent shared library, which I believe is the LC_LOAD_DYLIB command, so it wonโ€™t appear when I run otool -L on dylib?

+3
source share
1 answer

This question has been answered here .

Be careful, however, deleting LC_LOAD_DYLIB may actually violate the executable file, since the characters exported by the deleted DYLIB may not be found in other libraries, which makes it impossible to load the executable file (DYLD usually crashes with the ABORT trap then).

0
source

Source: https://habr.com/ru/post/1788393/


All Articles