OS Manuals

/usr/bin/eu-strip

Utilities and DSOs to handle ELF files and DWARF data

From elfutils 0.197-r0 (os), captured 2026-11-05 by running eu-strip --help (exit 0). permalink

Usage: eu-strip [OPTION...] [FILE...]
Discard symbols from object files.

 Output selection:
  -f FILE                    Extract the removed sections into FILE
  -F FILE                    Embed name FILE instead of -f argument
  -o, --output=FILE          Place stripped output into FILE

 Output options:
  -g, -d, -S, --strip-debug  Remove all debugging symbols
      --keep-section=SECTION Keep the named section.  SECTION is an extended
                             wildcard pattern.  May be given more than once.
      --permissive           Relax a few rules to handle slightly broken ELF
                             files
  -p, --preserve-dates       Copy modified/access timestamps to the output
      --reloc-debug-sections Resolve all trivial relocations between debug
                             sections if the removed sections are placed in a
                             debug file (only relevant for ET_REL files,
                             operation is not reversible, needs -f)
      --reloc-debug-sections-only
                             Similar to --reloc-debug-sections, but resolve all
                             trivial relocations between debug sections in
                             place.  No other stripping is performed (operation
                             is not reversible, incompatible with -f, -g,
                             --remove-comment and --remove-section)
      --remove-comment       Remove .comment section
  -R, --remove-section=SECTION   Remove the named section.  SECTION is an
                             extended wildcard pattern.  May be given more than
                             once.  Only non-allocated sections can be
                             removed.
      --strip-sections       Remove section headers (not recommended)

  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Report bugs to https://sourceware.org/bugzilla.
Options (14)
OptionDescriptionSource
-f FILEExtract the removed sections into FILEhelp
-F FILEEmbed name FILE instead of -f argumenthelp
-o, --output FILEPlace stripped output into FILEhelp
-g, -d, -S, --strip-debugRemove all debugging symbolshelp
--keep-section SECTIONSECTION is an extended wildcard pattern.help
--permissiveRelax a few rules to handle slightly broken ELF fileshelp
-p, --preserve-datesCopy modified/access timestamps to the outputhelp
--reloc-debug-sections-onlySimilar to --reloc-debug-sections, but resolve all trivial relocations between debug sections in place.help
--remove-commentRemove .comment sectionhelp
-R, --remove-section SECTIONRemove the named section.help
--strip-sectionsRemove section headers (not recommended)help
-?, --helpGive this help listhelp
--usageGive a short usage messagehelp
-V, --versionPrint program versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.