Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SSTRIP(1)		    General Commands Manual		     SSTRIP(1)

NAME
       sstrip -	truncates ELF files to remove non-program content.

SYNOPSIS
       sstrip [OPTIONS]	FILE ...

DESCRIPTION
       sstrip removes the content at the end of	an ELF file that does not con-
       tribute to a program's memory image.

       sstrip modifies the named file in place,	 rather	 than  outputting  new
       contents	to another location.

OPTIONS
       -z, --zeroes
	      Attempt to also strip trailing zero bytes	from the file.

       --help Display help and exit.

       --version
	      Display version information and exit.

NOTES
       sstrip  works  by  identifying the parts	of an ELF binary file that are
       loaded into memory when executed, and then truncating the file  to  re-
       move  everything	 beyond	 that point. Typically this means removing the
       section header table and	various	other tables that are  not  needed  by
       the program loader.

       A  shared-object	 library stripped in this fashion will still be	usable
       by the dynamic linker, but not by the static linker.

       The use of the option to	delete trailing	zero bytes can sometimes cause
       a  binary  to  not function (depending on which ELF structure was trun-
       cated as	a result). Since this feature typically	reduces	a file size by
       only  a	handful	 of  bytes  anyway,  it	is only	useful in rare circum-
       stances.

COPYRIGHT
       Copyright (C) 1999 Brian	Raiter _breadbox@muppetlabs.com_.

       License GPLv2+: GNU GPL version 2 or later. This	is free	software:  you
       are  free  to  change and redistribute it. There	is NO WARRANTY,	to the
       extent permitted	by law.

SEE ALSO
       strip(1).

ELF kickers 3.0			   May 2011			     SSTRIP(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | NOTES | COPYRIGHT | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sstrip&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help