Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Removing source code paths from executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing source code paths from executable



Massimiliano Origgi wrote :

Hello,
I have recently switched to GCC 4 (under XCode 2.2) and checking the optimized executable file I have found that the full source path of all objective-c source files is included in the executable (there are a few c files and they do not appear).

You may use the strip command (there's a setting in xcode for this), which suppress all symbols but Objective-C class descriptions (name, members, methods, inheritance…). These class descriptions must be there, because they are used by the Objective-C runtime : there's no way to prevent a potential hacker from seeing them (see the class- dump tool). Knowing that, I don't think is really useful to hide Objective-C file names.


This did not happen with GCC 3.3.

Are you sure ? try to run "otool -ov your_executable", I'm almost sure you will see some .m filenames.


--
Damien Bobillot

_______________________________________________
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


References: 
 >Removing source code paths from executable (From: Massimiliano Origgi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.