public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/21522] New: eu-strip generates empty output if there is nothing to do
@ 2017-05-30 14:37 paulo.cesar.pereira.de.andrade at gmail dot com
  2017-06-07 12:13 ` [Bug tools/21522] " mark at klomp dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: paulo.cesar.pereira.de.andrade at gmail dot com @ 2017-05-30 14:37 UTC (permalink / raw)
  To: elfutils-devel

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-14 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 14:37 [Bug tools/21522] New: eu-strip generates empty output if there is nothing to do paulo.cesar.pereira.de.andrade at gmail dot com
2017-06-07 12:13 ` [Bug tools/21522] " mark at klomp dot org
2017-06-13 14:20 ` mark at klomp dot org
2017-06-14 18:50 ` mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).