Skip to content

Strip

심볼을 삭제한다.

Flags

-u
Save all undefined symbols. This is intended for use with relocatable objects to save symbols referred to by external relocation entries. Note that common symbols are also referred to by external relocation entries and this flag does not save those symbols.
-r
Save all symbols referenced dynamically.

특정 심볼 제거

main심볼을 제거하고 싶다면:

strip --strip-symbol=main -o libdwm.a libdwm-nomain.a

Example

$ strip -u -r libtemp.dylib

Favorite site