From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18210 invoked by alias); 14 Apr 2005 09:54:25 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 18180 invoked from network); 14 Apr 2005 09:54:20 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 14 Apr 2005 09:54:20 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3E9sJUT024066 for ; Thu, 14 Apr 2005 05:54:19 -0400 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3E9sJO10441; Thu, 14 Apr 2005 05:54:19 -0400 Received: from [172.31.0.98] (vpnuser3.surrey.redhat.com [172.16.9.3]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j3E9sIkk021569; Thu, 14 Apr 2005 10:54:18 +0100 Message-ID: <425E3D63.5080104@redhat.com> Date: Thu, 14 Apr 2005 09:54:00 -0000 From: Nick Clifton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: Shaun Jackman CC: binutils@sources.redhat.com Subject: Re: objcopy fails silently with an empty input file References: <7f45d939050412163547d2cfe9@mail.gmail.com> <425D43A3.3090706@redhat.com> <7f45d93905041310211a32f090@mail.gmail.com> In-Reply-To: <7f45d93905041310211a32f090@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00364.txt.bz2 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