]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Add --keep-section=SECTION and --remove-section=SECTION.
authorMark Wielaard <mark@klomp.org>
Fri, 14 Jul 2017 15:09:40 +0000 (17:09 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 17 Jul 2017 11:35:33 +0000 (13:35 +0200)
commitd03be4f70c688a8c675935973663014c3c4bba76
tree3e931ae49814da48d61cd18c64377306587a8e0a
parentd65648473d1bfc779e16cd3cbf140a8ba0fed16c
strip: Add --keep-section=SECTION and --remove-section=SECTION.

Adds two new output options:

  --keep-section=SECTION Keep the named section.  SECTION is an extended
                         wildcard pattern.  May be given more than once.

  --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.

The --remove-section was already partially implemented, but only for the
.comment section. The short option -R is to be compatible with binutils.

The new testcase makes sure that various combinations of kept/removed
sections pull the correct dependencies into the output and/or debug files.

https://bugzilla.redhat.com/show_bug.cgi?id=1465997

Signed-off-by: Mark Wielaard <mark@klomp.org>
ChangeLog
NEWS
src/ChangeLog
src/strip.c
tests/ChangeLog
tests/Makefile.am
tests/run-strip-remove-keep.sh [new file with mode: 0755]