STRIP(1) GNU Development Tools STRIP(1)
>>> (NAME)
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]
[--strip-dwo]
[-K symbolname|--keep-symbol=symbolname]
[-M|--merge-notes][--no-merge-notes]
[-N symbolname |--strip-symbol=symbolname]
[-w|--wildcard]
[-x|--discard-all] [-X |--discard-locals]
[-R sectionname |--remove-section=sectionname]
[--keep-section=sectionpattern]
[--remove-relocations=sectionpattern]
[--strip-section-headers]
[-o file] [-p|--preserve-dates]
[-D|--enable-deterministic-archives]
[-U|--disable-deterministic-archives]
[--keep-section-symbols]
[--keep-file-symbols]
[--only-keep-debug]
[--plugin name]
[-v |--verbose] [-V|--version]
[--help] [--info]
objfile...
>>>>>>> (DESCRIPTION)
>>>>> strip >>> >>>>> >>>>>>
>> >> >>>>>>>> >>> objfile >>>
>>>>>>. >>>>> >>>>>>>> >>>
>>>>>>>> >>>> >>>>>>>>>>
(archives) >>> >>>>. >>>>> >> >>>>
>>> >>>> >>>> >>>.
>>>>> strip >>>>>> >>>>>
>>>>>>>>>> >>>>>>>>>> >>
>>>>>>> >>>>> >>>>>>>>
>>>>>>>> >> >>>>>>>>>>>>
>> >>>>>>>> >>>>> >>>>>>.
>>>>>>>> (OPTIONS)
-F bfdname
--target=bfdname
>> objfile >>>> >>>>>>> >>>>>
>> >>>> >> >>> bfdname >>>>>
>>>> > >> >> >> >>>> >>>>
>>>>>>>> >>>>>>.
--help
>>>>>>>> >> >>>>>>>>> strip
>> >>>>> >>>> > >>>>
>>>>>>.
--info
>>>>>> >>>> >>>>>
>>>>>>>>> > >>>>>>>> >>>
>>>>> >> >>>>> >>>>>>.
-I bfdname
--input-target=bfdname
>> objfile >>>> >>>>>>> >>>>>
>> >>>> >> >>> bfdname >>>>>
>>>>>>.
-O bfdname
--output-target=bfdname
>>>> objfile >> >> >>>>> >>
>>>> >>>>> bfdname >>>>>>>
>>>>>>.
-R sectionname
--remove-section=sectionname
>>>>> >> >> >>>> >> >>
>>>> >>>> >>>> >>> >>>
>>>> >> >>>> >> >>> sectionname
>> >>> >> >>>> >>>>> >>>
>>>>>>. >>> >>>>>
>>>>>>>> >>> >> >> >>>
>>>> >>>. >>>> >>>>>
>>>>> >> >>>>>>> >>>>>>
>> >>> >>>>> >>>> >>>
>>>> >>>>> >> >>>>>>>
>>>>>>> >>>. >>>>>
>>>>>>>>>> (wildcard) *
>>>>>>>> >> >>>>>> sectionname
>>>> >>>>> >> >>> >>>>>
>> >>>> >> >> sectionname >>>>
>>> >>> >>>>> >>.
>>> >>>>>> >>>>>> sectionpattern
>>>>> >>>> (!) >>>>>
>>>>>>> >>>>> >>>
>>>>>>> >>> >>> >>>
>>>>>>> >>>>> >> --remove-section
>> >>>> >> >>>>> >>>> >>>
>>>>> >>>>>. >>>> >>>>:
--remove-section=.text.* --remove-section=!.text.foo
>>>>> >>>>>>> >>>>> >>
>>>>> '.text.*' >> >>> >>>>>
>>>> >>> >>> '.text.foo' >> >>>
>>>>>>>.
--keep-section=sectionpattern
>>>>> >>> >>>>>> >> >>>>
>>>>>> >>>>>>>> >> >>
sectionpattern >>>>>> >>>>> >> >>>
>>>>>>.
--remove-relocations=sectionpattern
>>>>>>>>>>> (relocations) >> >>>>
>> >>>> >> >> sectionpattern >>>>>
>>>> >> >>>> >>>>> >>>
>>>>>>. >>> >>>>>
>>>>>>>> >>> >> >> >>>
>>>> >>>. >>>> >>>>>
>>>>> >> >>>>>>> >>>>>>
>> >>> >>>>> >>>> >>>
>>>> >>>>> >> >>>>>>>
>>>>>>> >>>. >>>>>>>>>
>>>>>>>>>> >> sectionpattern
>>>>>>> >>>>>>>. >>>>
>>>>:
--remove-relocations=.text.*
>>>>>>>>>>> >> >>>>
>>>>> >>>>>>> >>>>> >>
>>>>> '.text.*' >>> >>>>> >>>.
>>> >>>>>> >>>>>> sectionpattern
>>>>> >>>> (!) >>>>>
>>>>>>>>>>>> >>>>>>>
>>>>> >>> >>>>>>> >>> >>>
>>> >>>>>>> >>>> >>
--remove-relocations >> >>>> >> >>>>>
>>>> >>> >>>>> >>>>>.
>>>> >>>>:
--remove-relocations=.text.* --remove-relocations=!.text.foo
>>>>> >>>>>>>>>>>>
>>>>>>> >>>>> >> >>>>>
'.text.*' >> >>> >>>>>>> >>>
>>>>>>>>>>>> >>> '.text.foo' >>
>>> >>>>>> >>>.
--strip-section-headers
>>>>>>>>> >>>>>> (section headers)
>> >>> >>>>>>. >>> >>>>>
>>>> >>>>>>>> ELF >>>.
>>>>>> >>>>>> >>>>>>
--strip-all > --merge-notes >>>.
-s
--strip-all
>>>>> >>>>>> >> >>>
>>>>>>..IP -g 4
-S
-d
--strip-debug
>>>> >>>>>>>
>>>>>>>>>>> >> >>>
>>>>>>.
--strip-dwo
>>>>>> >>>> >>>>>>> DWARF .dwo
>> >>> >>>> > >>>>>>>
>>>>>>>>>>> >>>>>>>>>>
> >>>> >>>>>> >>
>>>>>>>>>> >>>>
>>>>>>>>. >>>> >>>>>>>
>>>>>> >> >>>>>>> >>>
>>>>> >> >>> objcopy >>>>>>
>>>>.
--strip-unneeded
>>>>> >> >>>>>> > >>>>>>>
>>>>>>>>>>> >> >>>> --strip-debug
>>> >>>>>>>> >>>>
>>>>>>>> >> >> >>>>
>>>>>> >>>>>>>> (relocation)
>>>> >>>> >>>>>> >>> >>>
>>>>>>.
-K symbolname
--keep-symbol=symbolname
>>>>> >>> >>>>>>> >>>>
symbolname >> >>> >> >>>>> >> >>
>>>> >>>> >>>> >>> >>>>>>
>>> >>>>>>>. >>> >>>>>
>>>>>>>> >>> >> >> >>>
>>>> >>>.
-M
--merge-notes
--no-merge-notes
>>>> >>>>>>>> ELF> >>>
>>>>>> (>> >>> >>>>>>>) >>
>>> >>>>>>>>>>> >>>>>>>
>>>>>>> >> >>> >> >>> SHT_NOTE
>> >>>> >>>. >>>> >>>>>>>
>>>> >>>> >>> >>>> >>>>
>>> >>>> >>>>>>>
>>>>>>>>>>> >> DWO >> >>>
>>> >>> >>>>>.
-N symbolname
--strip-symbol=symbolname
>>>> symbolname >> >> >>>> >>>>
>>> >>>>>>. >>> >>>>>
>>>>>>>> >>> >> >> >>>
>>>> >>> > >>>> >>> >>
>>>> >>>>>>>>> strip >>>>> -K
>>>>> >>>.
-o file
>>>>>> >>>>>>> >>>> >>>>
>>>>>> >>>>> >>>>>>> (strip
>>>) >> >> file >>>> >>>>>>.
>>>>>> >> >> >>> >>>>>>>
>>>>>>> >>>>>>> >>>> >>
>>>>>>> objfile >>>>>>>> >>>>
>>>.
-p
--preserve-dates
>>>>>>>>> >>>>>> > >>>>>
>>>> >> >>> >>>>>>.
-D
--enable-deterministic-archives
>> >>>> >>>> (deterministic) >>>
>>>>>>. >>>>> >>> >>>>
>>>>> >>>>> > >>>>>
>>>>>> >>>>>> >> >>>>>
>>> >>>> UID>>> GID>> >
>>>>>>>>> >>>>> >>>>>>>
>>>>>> > >>>>>>>> >>>>>
>>>>>> >> >>>> >>>>
>>>>>>> >> >>> >>>>>>.
>>> binutils >> --enable-deterministic-archives
>>>>>>>> >>> >>>>> >>>
>>>> >>>>>> >>>>>>> >>>>
>>>. >>>>>>> >> >> >>
>>>>>> -U >> >>> >>>>>>>
>>>.
-U
--disable-deterministic-archives
>> >>>> >>>> >>> >>>>>>>.
>>> >>>>> >>>>>> -D >> >>>>
>>>: >>>>> >>> >>>> >>>>>
>>>>> > >>>>> >>>>>>
>>>>>> >> >>>>>> >>>>> UID>
GID> >>>>> >>>>> > >>>>>>>>
>>>> >>>>> >>>>>>>
>>>>>>.
>>> >>>> >>>>>>> >>> >>>
>>>> binutils >> --enable-deterministic-archives
>>>>>>>> >>> >>>>.
-w
--wildcard
>>>>> >>>>>>> >> >>>>>>
>>>>>>> >> >> symbolname>>>
>>>>>>>>>> >> >>>>
>>>>>>>>> >> >>>>> >>>>>
>>>>>>. >>>>>>>> >>>>>
>>>> (?)> >>>>> (*)> >>>>
>>>>>> (\) > >>>>>>> ([])
>>>>>>>>> >> >> >>>> >>>
>>>> >> >>> >>>>. >>>
>>>>>> >>>>>> >>> >>>>
>>>>> >>>> (!) >>>>> >>>>>
>>>>> >>>> >> >>>> >>>>>
>>>>>>. >>>> >>>>>:
-w -K !foo -K fo*
>>>> >>>>>> >> strip >>>>
>>>>>>>> >> >>> >>>> >>
>> >>>> "fo" >>>> >>>>>>>>
>>> >>>> "foo" >> >>>>
>>>>>>.
-x
--discard-all
>>>>>>> >>>>>>>>> (non-global)
>> >>> >>>>>>.
-X
--discard-locals
>>>>>>> >>>> >>>>>>>>
>>>> >>>>>>>> >> >>>
>>>>>>. (>>> >>>>>>
>>>>>>> >> L >> . >>>>
>>>>>>>.)
--keep-section-symbols
>>>>> >>>>>>> >> >>>>>
>>>> >> --strip-debug >> --strip-unneeded> >>
>>>>> >> >> >>>>>>>>>>>
>>> >>>>>> >>>> > >> >>>
>>> >>>> >>> >>>>>> >>>
>>>>>>.
--keep-file-symbols
>>>>> >>>>>>> >> >>>>>
>>>> >> --strip-debug >> --strip-unneeded> >>
>>>>> >> >> >>>>>>>>>>>
>>> >>>>>>>> >>>> >>>> >
>> >>> >>> >>>> >>>
>>>>>> >>> >>>>>>.
--only-keep-debug
>> >>>> >> >>>>>>>>>>
>>>>>> >> >>>> >> >> >>>>
--strip-debug >>> >>>>>> >>>>
>>>>>> > >>>>>>>
>>>>>>>>>>> >>
>>>>>>>>>> >>>>
>>>>>>>>. >> >>>>>>>> ELF>
>>> >>> >>>> >>>>>>>
>>>>>>> (note sections) >> >>> >>
>>>>> >>> >>>>>>.
>>>> - >>>>>>>>> >>>>>>>
>>>>>>>>>>>> >>>>
>>>>>>>>>> >>>>>> >>>
>>>>>>> >>> >>>>>>>
>>>>>> >>> >>>>> >>>>>>.
>>>>>>>>> >>>>>> >> >>>
>>>>> >>> >>>>>>> >> >>>>
>>>>>>> >>>>>>> >>>> debuginfo
>> >> >>>> >>>>>> >>>>>
>>>>> >>>>> >>> >>> >>
>>>> >>>>>> >> >>>> >>>>>
>>>>>>> >>>>>>>> >>>
>>>>.
>>> >>> >>> >> >>> >>>>>
>> >>>> --add-gnu-debuglink >>>>
>>>>> >> >>>> >>>>>>
>>>>>>> >>>>>>> >>>: >>>
>>>>>> >>>>>>> >> >>>>
>>>>> >> RAM > >> >>>>>
>>>>> >>>>>>> > >>>>> >>
>>>> >>>>>>>
>>>>>>>>>>> >> >>>> >>
>>>> >>>> >> >>>>>>>>>>
>>>>>>>>>>> >>>> >>>. >>>
>>>>>>>> >>>> >>>>> >>>
>>>>>>> >> >>> >>> >>>:
1.
"foo" >>>>> >>>...
1.
>>> >>>> >>>>> >>>>
>>>>>>> >>>>>>>>>>>.
1.
>>> >>>> >> >>>> >>>>>>
>>>>>>>.
1.
>>> >>>>>> >>>>>> >>
>>>>>>> >>>>>>>>>>>
>>>> >>>> >>>>>>
>>>>>>>.
>>>>--->>>>>> ".dbg" >>>>>>>>
>>>>> >>>> >>>>>>>
>>>>>>>>>>> >>>>>>> >>>.
>>>>>> >>>>>> "--only-keep-debug"
>>>>>>> >>>. >>>>>>>>> >>
>>> >>> >>> >> >>>>> >>>>:
1.
1.
1.
1.
>>>> >>>>> >> >>>>
--add-gnu-debuglink >> >> >>>>>
>>>>>> >>>>>>>> >>>>
>>>>>> >>>> >>>> > >>>>>
>>>> >>>>> >>>> >> >>>>
>>>>> --only-keep-debug >>>>> >>>
>>>.
>>>>--->>> >>>>> >>>> >>>>
>>>>>>> >>> >>>>>>>>> >>
>>> >>>>> >>> >>> >>
>>>>>> >>>> >>>>>
>>>>>>>>>. >>>>>>> >> >>
>>> >>>>>>>> >>> (object files) >>
>>>>>>> >>>>>>>>>>> >>
>>>>> >>>> >>> >>>> >>>>>
>>>>> >>>>. >>>>> >> >>>>
>>>>>> gnu_debuglink >> >>> >>>>
>>>> >> >>>> >> >>> >>>>
>>>> >>>>>>>
>>>>>>>>>>> >>>>>>>>
>>>>>>> >> >>>>> >>> >>>>
>> >>>>> >> >>> >>>> >>
>>>> >>>. >>>>>>>>
>>>>>> >> >>> name >>>
>>>>>> >>>>>>>> >> >>>>>
>>> >>>>>. >>> >>>>> >>>>
>> >>>>> >>>>> >>> >>
>>>>>> >>>>> (toolchain) >> >>>>
>>>> >>>>>>>> >> >>>>>>
>>>>> >>> >>>>.
>>> --plugin >>>> >>>>> >>>
>>>>>>>> >> >>>>>> >>>>
>>>>> strip >>>>>>>> >>>>
${libdir}/bfd-plugins >> >> >>>>>
>>>>>>> >>>>> >>>> >
>>>>> >>>>>>>>> >> >>>
>>>> >>> >> >>>>>>>> >>>
>> >>> >>>>>>>.
>>>>> >>>> >>>>> >>>>> >>
>>> >>>> >>>>>> >>>>>>>
>>>> >>>>>>> >>>> >> >>>>
>>>>> -plugin >> ld >>>>>>>
>>>>>>. >> >>>>> >>>>>>>
strip >> >>>>>> >>>>>>>>>>>
>>>> >> >> >> >>>>
${libdir}/bfd-plugins >>> >>>. >>>>
>>>>>>>>>>> >>>>> >> GCC>
>>> >>>>>> >>>>>>>>>>
liblto_plugin.so.0.0.0 >>>. >>>>
>>>>>>>>>>> >>>>> >> Clang>
>>> >> LLVMgold.so >>>>>>>.
>>>>>> GCC >>>>> >>
>>>>>>>> >>>>> >>>>>> >>
>>> >>>> >>>>>>>> >>>
>>>> >>>>>>>> >>>> >>
>>>>> >>>>>>.
-V
--version
>>>>> >>>>> >>>> strip.
-v
--verbose
>>>>> >> >>>>>>: >>>>>
>>>> >>>> >>>>>>>> >>>
>>>>>>>>>. >> >>>>
>>>>>>>>>>> strip -v >>>>
>>>>> >>>>>>> >> >>>>>
>>>>>>.
@file
>>>>>> >>>>>>>>> >>
>>>>> >> file. >>>>>>>>>
>>>>>>>>>> >> >>> >>>>>
>>>> @file >>>> >>>>>>>>.
>>> file >>>> >>>>>> >>>>>
>> >>>>>> >>>>> >>
>>>>> >>>>>>>
>>>>>>>>>> >>>>> >>> >
>>> >>>>>>>.
>>>>>>>> >> file >>
>>>>>>>>> >>>>> (whitespace) >>
>>>>>> >>> >>>>>>>. >>
>>>>> >>>>> >>>>>>>> >>
>>>> >>>> >> >>>>> >>
>>>>> >>>>>>> >>> >>
>>>>>> >>>>>>> >>>. >>
>>>>>>>> (>> >>>>
>>>>>>>) >>>>>>>> >>
>>>>>> >>>> >> >>>>>>>
>>> >> >> >>>>> >>> >>>>.
>>> file >>>> >>> >>>>
>>>>>>>>> @file >>>>>
>>>>> >> >> >> >>>
>>>>>>>> >>>>>>>
>>>>>>> >>>>>> >>>>>>
>>.
>>>>>> >>>>>> (SEE ALSO)
>>>>>>>> Info >>>> binutils.
>>>>>>>> > >>>>> (COPYRIGHT)
Copyright (c) 1991-2025 Free Software Foundation, Inc.
>>>>> >>>> >>>>> >/>> >>>>>
>>> >>> >>> >>>>> >>>>
>>>>>>> >>>> >>> (GNU Free Documentation
License)> >>>> >.> >> >> >>>>
>>>> >>>>>>>> >>>> >>>>>
>>>>>>>>>>>> >>>> (Free Software
Foundation) >>>> >>>>>>> >>>>
>>>>>>> >>>>>>>>>>>> >>>>
>>>> >>> >>>> > >>>> >>>>
>>> >>>. >> >>>> >> >>> >>>>
>> >>>> >> >>>>> <> >>>>>>> >>> >>>.
binutils-2.45.1 2026-01-23 STRIP(1)