On Mon, Aug 20, 2001 at 01:19:05AM -0700, Peter Wemm wrote:
> Regarding stripping gcc2_compiled.. strip can only filter symbols from
> the .symtab and .symstr symbol tables. Since strip already removes both
> of those sections, the -N gcc2_compiled is useless. strip cannot modify
> the .dynsym/.dynstr in the PT_LOAD sections, so those will stay regardless.
> In all, I think this -R gcc2_compiled. is useless unless you're in -X or
> -D mode (only remove debug symbols etc).
Are you sure this is true? The binaries I've stripped in this way
don't seem to contain any reference to the symbol.
> gdb uses gcc2_compiled to tune its understanding of the generated code.
> I suspect the fact that we remove this from the kernel is part of the reason
> gdb has so much trouble understanding local variables in gdb -k mode.
> (It doesn't understand trap frames either, but thats another story.)
That's why I added it to '-s -s'..if you're stripping symbols like
this, you probably don't care about debugging (and this would be
documented in the manpage).
> Removing the .note *section* is probably a good idea since it is effectively
> useless in an executable. The PT_NOTE executable header is unaffected by
> stripping the leftover .note section contents.
Kris
PGP signature