From: "paulo.cesar.pereira.de.andrade at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug tools/21522] New: eu-strip generates empty output if there is nothing to do
Date: Tue, 30 May 2017 14:37:00 -0000 [thread overview]
Message-ID: <bug-21522-10460@http.sourceware.org/bugzilla/> (raw)
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.
next reply other threads:[~2017-05-25 15:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 14:37 paulo.cesar.pereira.de.andrade at gmail dot com [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-21522-10460@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).