[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Executable strip cris-strip
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of Ronny L Nilsson
> Sent: den 19 juli 2004 20:59
> To: Nathan.Smith@xxxxxxx.gov; dev-etrax
> Subject: Re: Executable strip cris-strip
> > get an executable that is 22K. Both of the files seem to run fine on
> > my Axis box. What is the disadvantage of stripping the executable?
> When striping youre removing debug informatoin from the file.
It could mean removing any symbols from the object file, not just
debug info. The tools/build/scripts/install_elinux script we normally
use to install binaries uses the --strip-unneeded option.
> common to do this in embedded systems since they're mostly short of
> diskstorage. The dissadvantage is usually that your application get
> much harder to debug (if necessary).
Not necessarily. Debugging is normally done using a cross debugger
running on the host system and a debug agent (gdbserver) running on
the target system. If you just make sure to load the original (not
stripped) binary into the debugger on the host it has full access
to all debug info even though the executable on the target system
Expert Software Engineer
Axis Communications AB