public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Shaun Jackman <sjackman@gmail.com>
To: binutils@sources.redhat.com
Subject: Re: objcopy fails silently with an empty input file
Date: Thu, 14 Apr 2005 15:25:00 -0000	[thread overview]
Message-ID: <7f45d93905041408251402df05@mail.gmail.com> (raw)
In-Reply-To: <425E3D63.5080104@redhat.com>

On 4/14/05, Nick Clifton <nickc@redhat.com> wrote:
> Hi Shaun,
> 
> > Thanks, Nick. The patch works, although it doesn't allow for this use case:
> > $ echo -n > empty
> > $ arm-elf-objcopy -I binary -O elf32-little empty empty.o; echo $?
> > arm-elf-objcopy: empty: empty input file
> > 0
> > $ nm empty.o
> > 00000000 D _binary_empty_end [...]
> 
> Strange - I do not get that behaviour:
> 
>    % echo -n > empty
>    % objcopy -I binary -O elf32-little empty empty.o ; echo $?
>    objcopy: empty: empty input file
>    1
>    % nm empty.o
>    nm: 'empty.o': No such file
> 
> Are you sure that you applied the patch I sent correctly ?
> 
> Cheers
>    Nick

Sorry, Nick . I wasn't clear. The use case I posted was the behaviour
that I desired, which I get with the patch I posted. With your patch,
I see the same behaviour as you do. To clear things up, I would like
"empty input file" to be a warning, not an error, particularly when
the input BFD is 'binary'.

Cheers,
Shaun

  reply	other threads:[~2005-04-14 15:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12 23:35 Shaun Jackman
2005-04-13 16:08 ` Nick Clifton
2005-04-13 17:21   ` Shaun Jackman
2005-04-14  9:54     ` Nick Clifton
2005-04-14 15:25       ` Shaun Jackman [this message]
2005-04-15  9:13         ` Nick Clifton
2005-04-15 16:01           ` Shaun Jackman
2005-04-15 16:27             ` Nick Clifton

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=7f45d93905041408251402df05@mail.gmail.com \
    --to=sjackman@gmail.com \
    --cc=binutils@sources.redhat.com \
    /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).