This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem with loader call using arm-elf-gcc
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Robert Brusa <bob dot brusa at gmail dot com>
- Cc: MailingList: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>;
- Date: Thu, 5 Jun 2008 11:27:31 +0200
- Subject: Re: [ECOS] Problem with loader call using arm-elf-gcc
- References: <op.ub9qush0keg3uf@debi27.local.lan>
On Thu, Jun 05, 2008 at 11:19:30AM +0200, Robert Brusa wrote:
> Hi
> I am using the arm-elf gnutools that come with ecos. To be precise: I
> would like to use it, because there is an error message I were I am
> stuck.
>
> I am running a Makefile from within Eclipse (3.3.2), the arm-elf-gcc is
> 3.2.1. The program I want to compile is a simple Hello World exercise. It
> is - together with its Makefile - downloaded from ATMELs web site. I had
> this same example on a windows XP PC using yagartos toolchain. It worked.
> Now on my debian etch PC I get the following error message:
>
> arm-elf-gcc -g -nostartfiles -Wl,--gc-sections
> -T"../at91lib/boards/at91sam7x-ek/at91sam7x256/flash.lds" -o
> bin/My5-at91sam7x256-flash.elf obj/board_cstartup.o obj/main.o
> obj/stdio.o obj/dbgu.o obj/pio.o obj/board_memories.o
> obj/board_lowlevel.o
Run the command with -v. You will then get to see all the flags passed
to the linker.
> /home/rwb/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld:
> cannot find -lg
It is probably looking for a library called libg.a which does not
exist. You don't appear to be passing -lg, but maybe it is in your
linker script, flash.lds?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss