Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

strip (Unix)

From Wikipedia, the free encyclopedia
Shell command for removing non-essential information from executable code files
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Strip" Unix – news ·newspapers ·books ·scholar ·JSTOR
(December 2020) (Learn how and when to remove this message)
strip
Original author(s)Dennis Ritchie
(AT&T Bell Laboratories)
Developer(s)Variousopen-source andcommercial developers
Initial releaseJune 12, 1972; 52 years ago (1972-06-12)
Written inC
Operating systemUnix,Unix-like,Plan 9,Microsoft Windows
PlatformCross-platform
TypeCommand
LicensePlan 9:MIT License

strip is ashellcommand for removing information frombinaryexecutableprograms andobject files that is not required forexecution – typically includingdebugging data,symbol tables,relocation information, and othermetadata. The resulting file generally has a smallersize and potentially has increased performance. The resulting file is known as astripped binary.[1]

Usingstrip can enhance the security of an executable by making it more difficult toreverse-engineer. The absence of symbol and debugging information complicates theprogram analysis of the binary.

The effect ofstrip can also be achieved via acompiler orlinker to perform the same process.[2] For example, in theGNU C compiler (gcc), this is done via the-s option.[2]

The command is available inUnix,Plan 9, andUnix-like systems. TheGNU Project includes an implementation in theGNU Binutils package. The command has been implemented in to other operating systems includingWindows.

See also

[edit]
  • Dead code elimination – Compiler optimization to remove code which does not affect the program resultsPages displaying short descriptions of redirect targets
  • Debug symbol – special kind of symbol that attaches additional information to the symbol table of an object file, such as a shared library or an executable, allowing a symbolic debugger to gain access to information from the source code of the binaryPages displaying wikidata descriptions as a fallback
  • Executable compression – Means of compressing an executable file
  • List of POSIX commands
  • strings (Unix) – Shell command for extracting printable text from a binary file
  • Symbol table – Data structure used by a language translator such as a compiler or interpreter

References

[edit]
  1. ^"Linux Strip Command".www.computerhope.com. Retrieved2024-10-01.
  2. ^ab"What is the difference between "gcc -s" and a "strip" command?".Stack Overflow. Retrieved2024-10-01.

External links

[edit]
The WikibookGuide to Unix has a page on the topic of:Commands
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
File system
Processes
User environment
Text processing
Shell builtins
Networking
Searching
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Strip_(Unix)&oldid=1288392578"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp