• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to not include function names in dylib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to not include function names in dylib?
      • From: email@hidden (Christian Schmitz)
References: 
 >How to not include function names in dylib? (From: email@hidden (Christian Schmitz))

  • Prev by Date: How to not include function names in dylib?
  • Next by Date: Project compiles but won't run under xCode 3.0 - class lookup error
  • Previous by thread: How to not include function names in dylib?
  • Next by thread: Re: How to not include function names in dylib?
  • Index(es):
    • Date
    • Thread