From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13156 invoked by alias); 12 Apr 2005 23:35:07 -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 13141 invoked from network); 12 Apr 2005 23:35:01 -0000 Received: from unknown (HELO rproxy.gmail.com) (64.233.170.197) by sourceware.org with SMTP; 12 Apr 2005 23:35:01 -0000 Received: by rproxy.gmail.com with SMTP id y7so1756132rne for ; Tue, 12 Apr 2005 16:35:01 -0700 (PDT) Received: by 10.11.94.33 with SMTP id r33mr196630cwb; Tue, 12 Apr 2005 16:35:00 -0700 (PDT) Received: by 10.11.99.14 with HTTP; Tue, 12 Apr 2005 16:35:00 -0700 (PDT) Message-ID: <7f45d939050412163547d2cfe9@mail.gmail.com> Date: Tue, 12 Apr 2005 23:35:00 -0000 From: Shaun Jackman Reply-To: Shaun Jackman To: binutils@sources.redhat.com Subject: objcopy fails silently with an empty input file Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-04/txt/msg00301.txt.bz2 objcopy silently fails when the input file is empty. I'd rather it didn't fail -- this used to work in previous versions -- but it definitely shouldn't fail silently. Cheers, Shaun $ arm-elf-objcopy --version | head -1 GNU objcopy 2.15 $ echo > not-empty $ arm-elf-objcopy -Ibinary -Oelf32-little not-empty not-empty.o; echo $? 0 $ echo -n > empty $ arm-elf-objcopy -Ibinary -Oelf32-little empty empty.o; echo $? 1