Re: Removing source code paths from executable
Re: Removing source code paths from executable
- Subject: Re: Removing source code paths from executable
- From: Dave Rehring <email@hidden>
- Date: Fri, 03 Feb 2006 01:08:15 -0800
- Thread-topic: Removing source code paths from executable
On 1/31/06 6:02 AM, Damien Bobillot at
email@hidden wrote:
> 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.
I believe this is true. GCC 3.3 didn't include the complete source path,
and I think it doesn't include even the file name. GCC 4.0 started putting
the complete file path into the executable. We did file a bug about it, but
got back 'works as designed' [or something similar].
Offhand, I can't imagine why the final, built and linked executable needs to
know what source file an Objective-C class came from [class name yes, file
name, no]...
Later,
--
David Rehring Psychos do not explode when light hits
VP of Research and Development them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!
_______________________________________________
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