X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: Cannot execute binary file
Date: Thu, 7 Sep 2006 19:19:39 +0100
Message-ID: <014301c6d2aa$2eb33e90$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <45005FFE.6030302@unix.telasic.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 07 September 2006 19:08, Arun Biyani wrote:

> Recently, I've run into this "cannot execute binary file" problem. I
> have not run this
> program for 3-4 months but before that it would run fine in Cygwin. It
> was compiled
> and linked for Cygwin even though "file" command says linux.

> [rom$:553] m68k-elf-objcopy -O  binary  umon_rom.elf umon_rom.bin
> /bin/m68k-elf-objcopy: /bin/m68k-elf-objcopy: cannot execute binary file
> [rom$:554] file /bin/m68k-elf-objcopy
> /bin/m68k-elf-objcopy: ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV),
>  for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for
> GNU/Linux 2.2.5, stripped

  No.  No way on earth did it ever run that file.  If the file command says
linux, then it IS linux.  You must have overwritten your cygwin version at
some stage with a linux version.

>  Session
> transcript
> below. Does anyone know if I can download a pre-built gcc toolchain for
> Cygwin?

  I don't know of any but it's probably there are some out there, but if your
compiler works and it's only your binutils you've got problems with, it's
trivially easy to build cross-binutils from source on cygwin.



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

