[Bug tools/21522] New: eu-strip generates empty output if there is nothing to do
https://sourceware.org/bugzilla/show_bug.cgi?id=21522 Bug ID: 21522 Summary: eu-strip generates empty output if there is nothing to do Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: paulo.cesar.pereira.de.andrade at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Steps to reproduce: $ cat test.c int main() { return 1; } $ gcc test.c $ eu-strip -g -o test ./a.out The "test" file will have zero bytes. This happens because of the test in src/strip.c: /* Test whether we are doing anything at all. */ if (cnt == idx) /* Nope, all removable sections are already gone. */ goto fail_close; Note also that, if the test is removed, it still generates a different binary, so, the test is incomplete, or should be removed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug tools/21525] New: Multiple .shstrtab sections since eu-readelf 0.166
https://sourceware.org/bugzilla/show_bug.cgi?id=21525 Bug ID: 21525 Summary: Multiple .shstrtab sections since eu-readelf 0.166 Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: paulo.cesar.pereira.de.andrade at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- I understand this is not really a bug, but it generates an output more complex than it should be, and confuses tools like patchelf. Example: $ cat test.c int main() { return 1; } $ gcc -g test.c $ eu-strip -g a.out $ eu-readelf -S a.out | grep .shstrtab | wc -l The extra section appears useless at least on the sense of a very simple test case. The issue started with this commit: https://sourceware.org/git/?p=elfutils.git;a=commit;h=df7dfab451246e8b088040e052ca01f9d6aba774 -- You are receiving this mail because: You are on the CC list for the bug.