Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Let The Music Play: Join EFF Today

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 176 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

strip



SYNOPSIS

       strip [-F bfdname |--target=bfdname]
             [-I bfdname |--input-target=bfdname]
             [-O bfdname |--output-target=bfdname]
             [-s|--strip-all]
             [-S|-g|-d|--strip-debug]
             [-K symbolname |--keep-symbol=symbolname]
             [-N symbolname |--strip-symbol=symbolname]
             [-x|--discard-all] [-X |--discard-locals]
             [-R sectionname |--remove-section=sectionname]
             [-o file] [-p|--preserve-dates]
             [--only-keep-debug]
             [-v |--verbose] [-V|--version]
             [--help] [--info]
             objfile...


DESCRIPTION

       GNU  strip discards all symbols from object files objfile.
       The list of object files may include archives.   At  least
       one object file must be given.

       strip  modifies  the  files  named in its argument, rather
       than writing modified copies under different names.


OPTIONS

       -F bfdname
       --target=bfdname
           Treat the original objfile as a file with  the  object
           code  format  bfdname, and rewrite it in the same for­
           mat.

       --help
           Show a summary of the options to strip and exit.

       --info
           Display a list showing all  architectures  and  object
           formats available.

       -I bfdname
       --input-target=bfdname
           Treat  the  original objfile as a file with the object
           code format bfdname.

       -O bfdname
       --output-target=bfdname
           Replace objfile with a file in the output format  bfd­
           name.

       -R sectionname
       --remove-section=sectionname
           Remove  any  section named sectionname from the output
           file.  This option may be given more than once.   Note
           Remove all symbols that are not needed for  relocation
           processing.

       -K symbolname
       --keep-symbol=symbolname
           Keep  only  symbol  symbolname  from  the source file.
           This option may be given more than once.

       -N symbolname
       --strip-symbol=symbolname
           Remove symbol symbolname from the  source  file.  This
           option  may  be  given more than once, and may be com­
           bined with strip options other than -K.

       -o file
           Put the stripped output in file, rather than replacing
           the  existing  file.  When this argument is used, only
           one objfile argument may be specified.

       -p
       --preserve-dates
           Preserve the access  and  modification  dates  of  the
           file.

       -x
       --discard-all
           Remove non-global symbols.

       -X
       --discard-locals
           Remove  compiler-generated local symbols.  (These usu­
           ally start with L or ..)

       --only-keep-debug
           Strip a file, removing  any  sections  that  would  be
           stripped  by  --strip-debug  and leaving the debugging
           sections.

           The intention is that this option will be used in con­
           junction with --add-gnu-debuglink to create a two part
           executable.  One a stripped binary which  will  occupy
           less space in RAM and in a distribution and the second
           a debugging information file which is only  needed  if
           debugging  abilities are required.  The suggested pro­
           cedure to create these files is as follows:

           1.<Link the executable as normal.  Assuming that is is
           called>
               "foo" then...

           1.<Run "objcopy --only-keep-debug foo foo.dbg" to>
               create a file containing the debugging info.

           1.<Copy "foo" to  "foo.full">
           1.<Run "strip --strip-debug foo">
           1.<Run "objcopy --add-gnu-debuglink=foo.full foo">

           ie the file pointed to by the --add-gnu-debuglink  can
           be the full executable.  It does not have to be a file
           created by the --only-keep-debug switch.

       -V
       --version
           Show the version number for strip.

       -v
       --verbose
           Verbose output: list all object  files  modified.   In
           the  case  of  archives, strip -v lists all members of
           the archive.


SEE ALSO

       the Info entries for binutils.


COPYRIGHT

       Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99,  2000,
       2001, 2002, 2003 Free Software Foundation, Inc.

       Permission  is  granted  to copy, distribute and/or modify
       this document under the terms of the GNU  Free  Documenta­
       tion  License,  Version 1.1 or any later version published
       by the Free Software Foundation; with  no  Invariant  Sec­
       tions,  with  no Front-Cover Texts, and with no Back-Cover
       Texts.  A copy of the license is included in  the  section
       entitled ``GNU Free Documentation License''.

binutils-2.14.90.0.5        2003-09-23                   STRIP(1)
  

Looking for a "printer friendly" version?


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.04 Seconds