Can't strip internal 'C' function symbols in framework product
Can't strip internal 'C' function symbols in framework product
- Subject: Can't strip internal 'C' function symbols in framework product
- From: Jerry Krinock <email@hidden>
- Date: Fri, 15 May 2009 13:57:21 -0700
I'm compiling a framework which only requires a few of its many
symbols to be externally visible. From the documentation, [1] I
understand that Xcode and GCC 4 provide several mechanisms to hide
symbols. I believe I've activated all of them, but when I run the
'nm' command on the framework product, I still see symbols of my plain
old 'C' functions.
In the code, I have defined Foo() like this:
__attribute__((visibility("hidden"))) BOOL Foo() {
In the framework's Target > Build Settings, Release Configuration, I
have...
- defined EXPORTED_SYMBOLS_FILE and in said file, not mentioned _Foo
- set GCC_SYMBOLS_PRIVATE_EXTERN
- switched on DEPLOYMENT_POSTPROCESSING
- switched on COPY_PHASE_STRIP
- set STRIP_STYLE to 'all'
But when I then Clean, Build and run 'nm' on the produced executable,
I ^still^ see in there
0008af7e t _Foo
What else do I need to do?
Thanks,
Jerry Krinock
[1] http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/1-Articles/executing_files.html
_______________________________________________
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