[Bug tools/21522] eu-strip generates empty output if there is nothing to do

mark at klomp dot org sourceware-bugzilla@sourceware.org
Wed Jun 14 18:50:00 GMT 2017


Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
commit b58aebe71e0b4863db1b7fd3e942e36303257f3a
Author: Mark Wielaard <mark@klomp.org>
Date:   Wed Jun 7 20:32:38 2017 +0200

    strip: Don't generate empty output file when nothing to do.

    If there was nothing to do strip would skip generating a separate
    debug file if one was requested, but it would also not finish the
    creation of a new output file (with the non-stripped sections).
    Also if there was an error any partially created output would be kept.

    Make sure that when the -o output file option is given we always generate
    a complete output file (except on error). Also make sure that when the -f
    debug file option is given it is only generated when it is not empty.

    Add testcase run-strip-nothing.sh that tests the various combinations.


    Signed-off-by: Mark Wielaard <mark@klomp.org>

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list