[PATCH] strip: Make sure old .shstrab is removed when eu-strip recreates it.

2017-06-07 Thread Mark Wielaard
Although we always recreate the .shstrtab section for the new output file we never explicitly assumed it could be removed. It might not be possible to remove it when the section string table is shared with a symbol table. But if it is removable we should (and recreate it for the new section list).

[Bug tools/21525] Multiple .shstrtab sections since eu-readelf 0.166

2017-06-07 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21525 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

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

2017-06-07 Thread Mark Wielaard
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 outp

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

2017-06-07 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21522 Mark Wielaard changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|