Re: obfuscation
On May 30, 10:45 am, Zeppe
<zep_p@.remove. all.this.long.c omment.yahoo.it wrote:
[...]
That's what I always thought, but a quick check (under Solaris)
shows that it just ain't true. The names are no longer visible
to nm (and the executable is noticeably smaller), but they still
show up using strings.
Obvoiusly not, I'd say. Also, you can't delete the names of
types, at least not if type_info::name () is still going to work.
--
James Kanze (GABI Software) email:james.kan ze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
On May 30, 10:45 am, Zeppe
<zep_p@.remove. all.this.long.c omment.yahoo.it wrote:
JohnQ wrote:
Anyway, under linux, the debug symbols are activated by -g, so if you
compile without it they shouldn't be included. And the the command
compile without it they shouldn't be included. And the the command
strip executable_name
will remove all the names of all the exported symbols, so there will be
no more readable information.
no more readable information.
shows that it just ain't true. The names are no longer visible
to nm (and the executable is noticeably smaller), but they still
show up using strings.
For windows I guess it's similar, look at
the "c++ options" and "code generation" options in visual studio for
example, there should be some "do no include debug information".
the "c++ options" and "code generation" options in visual studio for
example, there should be some "do no include debug information".
So, the question is: are function names and class names not visible in
non-debug code? (That is a/the concern of mine).
non-debug code? (That is a/the concern of mine).
they are not, provided you tell the compiler that you don't need him to
preserve the function names. (well, not sure if you can delete also the
names of the function linked dynamically on shared libraries, though...
probably not).
preserve the function names. (well, not sure if you can delete also the
names of the function linked dynamically on shared libraries, though...
probably not).
types, at least not if type_info::name () is still going to work.
--
James Kanze (GABI Software) email:james.kan ze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Comment