Skip to content
Search

Strip

lastmod 2021-01-02created 2016-02-243 edits

Removes symbols.

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.

Removing a specific symbol

To remove the main symbol:

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

Example

$ strip -u -r libtemp.dylib

Favorite site

author Zer0 sitemap