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
icon
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 authorsDennis Ritchie
(AT&T Bell Laboratories)
DevelopersVariousopen-source andcommercial developers
Initial releaseJune 12, 1972; 53 years ago (1972-06-12)
Written inC
Operating systemUnix,Unix-like,Plan 9,Microsoft Windows
PlatformCross-platform
TypeCommand
LicensePlan 9:MIT License

strip is ashell command for removing information frombinaryexecutableprograms andobject files that is not required forexecution – typically includingdebugging data,symbol tables,relocation information, and othermetadata. The resulting file will have a smallersize, this is also 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]

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=1308659894"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp