Re: How to not include function names in dylib?
Re: How to not include function names in dylib?
- Subject: Re: How to not include function names in dylib?
- From: Steve Checkoway <email@hidden>
- Date: Wed, 23 Aug 2006 12:49:29 -0700
On Aug 23, 2006, at 12:22 PM, Christian Schmitz wrote:
gcc does include function names in dylibs here. How do I prevent that?
Has someone an idea?
I only want one function to be named in the file (and all imports),
but
not the private functions.
strip -x libfoo.dylib
should strip all nonglobal symbols from the library. See the strip(1)
man page for more details on how to strip all but certain symbols.
Looks like -s option might do what you want.
PS: I tried with gcc and xcode and various options, but did not get it
done.
It looks like ld also accepts -x (although you need to pass it as -
Wl,-x if passing it to gcc) or -exported_symbols_list. See the ld(1)
man page for details.
--
Steve Checkoway
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden