From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13798 invoked by alias); 18 Nov 2001 22:42:20 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 13770 invoked from network); 18 Nov 2001 22:42:17 -0000 From: Ben Elliston MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15352.9885.608951.546968@scooby.brisbane.redhat.com> Date: Wed, 31 Oct 2001 15:31:00 -0000 To: Cristiano Ligieri Pereira Cc: sid@sources.redhat.com Subject: Re: Running the hello.c example In-Reply-To: References: X-Mailer: VM 6.72 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid X-SW-Source: 2001-q4/txt/msg00013.txt.bz2 >>>>> "Cristiano" == Cristiano Ligieri Pereira writes: Cristiano> % arm-elf-gcc -EL hello.c -o hello.x Cristiano> arm-elf-gcc: unrecognized option `-EL' Cristiano> /tools/H-i686-pc-linux-gnu/arm-elf/bin/ld: cannot open crt0.o: No such Cristiano> file or directory Cristiano> collect2: ld returned 1 exit status I'm not sure why this is happening; are you sure that -EL is the right command line option to build a little endian ARM binary? I'm not so sure. You should check the documentation. Cristiano> % arm-elf-gcc -I/usr/include -E hello.c -o hello.x Cristiano> it works fine and generate the hello.x file, which is post-preprocessing Cristiano> version of the file hello.c (which I thought it was weird since as far as Cristiano> I understood I need the executatble version, isn't it?). Cristiano> Anyways, It turns out to does not work. When trying arm-elf-sid I get the Cristiano> following: Cristiano> % arm-elf-sid hello.x Cristiano> loader: error loading hello.x This won't work -- you've emitted preprocessed source to hello.x. hello.x needs to be a valid ELF object file (you can test this with file(1) when you think you've got it right). Ben