relative value of stripping symbols

Russ Kepler russ at bbx.UUCP
Fri Apr 28 02:05:46 AEST 1989


In article <690011 at hpfelg.HP.COM> jk at hpfelg.HP.COM (John Kessenich) writes:
>
>There may be another issue:  security.  Consider a program secured through
>some mechanism (e.g. CPU serial number) by a function in the executable 
>that checks the security mechanism and returns an appropriate value to 
>its calling function, which then acts on the result.  If the security 
>function has a meaningful name, having the symbol table present greatly 
>simplifies the task of a user editing the executable to effectively turn 
>off security checks.

If you are using 'strip' for security you should perhaps consider
using the '-s' option in 'ld' instead.  On one of the systems that
we ported to the 'strip' command simply set a pointer/flag to tell
'nm' that there weren't any symbols.  File size remained the same.

using 'cc -s' generated an executable considerably smaller...

-- 
Russ Kepler -  Basis International
SNAILMAIL:  5901 Jefferson NE, Albuquerque, NM 87109
UUCP:       {backboneishsite}!unmvax!bbx!russ
PHONE:      505-345-5232



More information about the Comp.lang.c mailing list