From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29089 invoked by alias); 14 Apr 2006 05:07:22 -0000 Received: (qmail 28967 invoked by uid 22791); 14 Apr 2006 05:07:20 -0000 X-Spam-Check-By: sourceware.org Received: from nproxy.gmail.com (HELO nproxy.gmail.com) (64.233.182.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Apr 2006 05:07:17 +0000 Received: by nproxy.gmail.com with SMTP id a27so0nfc for ; Thu, 13 Apr 2006 22:07:13 -0700 (PDT) Received: by 10.49.58.4 with SMTP id l4mr429081nfk; Thu, 13 Apr 2006 22:07:12 -0700 (PDT) Received: by 10.49.55.2 with HTTP; Thu, 13 Apr 2006 22:07:12 -0700 (PDT) Message-ID: <9f7850090604132207u4e4040cvc279877865737346@mail.gmail.com> Date: Fri, 14 Apr 2006 05:07:00 -0000 From: "marty fouts" To: Niklaus Subject: Re: need help with gcc 4.1.0 crosscompiler for arm Cc: gcc-help@gcc.gnu.org In-Reply-To: <85e0e3140604132153v4c640b9dx3b0f67cf050c957e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9f7850090604121611n65f69452u8de92a946fac6221@mail.gmail.com> <85e0e3140604130025m17ca0aearf83360575bb09c27@mail.gmail.com> <9f7850090604131553y66c4cb5au466d6bba43c55f6@mail.gmail.com> <85e0e3140604132153v4c640b9dx3b0f67cf050c957e@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-04/txt/msg00135.txt.bz2 On 4/13/06, Niklaus wrote: [much snippage] > > Basically, if I tell arm-elf-gcc which arm processor I'm using, it > > recognizes that the processor has no floating point, so arm-elf-ld > > fails, as it should, with the messages: > > sponge:sf 500:arm/bin/arm-elf-gcc -mthumb-interwork -msoft-float > > -mcpu=3Darm926ej-s -c demo.c > > if I remove '-mcpu=3Darm926ej-s' from the compile, then the ld will > > work, but i'll end up with floating point instructions on an arm > > processor that has no fp. > > > pro@deb:~/armenv/bin$ ./arm-elf-gcc -c foo.c > pro@deb:~/armenv/bin$ file foo.o > foo.o: ELF 32-bit LSB relocatable, ARM, version 1 (ARM), not stripped > pro@deb:~/armenv/bin$ ./arm-elf-ld -o demo.elf foo.o > ../lib/gcc/arm-elf/4.1.0/libgcc.a > Does this help you ? If not ask for more. You can add newlib or glibc > after gcc bootstrap. Thanks very much for taking the time to look at this. Sorry, but it doesn't help. If you leave off the -mcpu=3Darm96ej-s option, than you get an elf binary with floating point. What I really need is instructions for building libgcc.a for arm w/o any FP instructions in it, and especially, without the FP based calling sequences. In particular, why did this work in 3.4 but not 4.1?