This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: problem compiling hello.c


I'm not familiar with the specific board you are using, but we got around a
similar problem by modifying the appropriate .ldi file (within
packages/hal/.../include/pkconfg) so as to map it into a different region of
memory (for us, we couldn't fit redboot into internal RAM, so we mapped part
of it into external RAM).

Also, "a.out" is an elf file (I figured that out by using objdump).

Hope that helps,

-Eric Castle

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: Tuesday, June 08, 2004 3:13 AM
To: Herman Sahota
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] problem compiling hello.c


On Mon, Jun 07, 2004 at 10:46:35PM -0700, Herman Sahota wrote:
> Hi everyone,
>
> I tried compiling hello.c for the arm7et andam getting
> the following error. Could someone provide any clue?
>
> [herman@aakash work]$ arm-elf-gcc -g
> -Iecos_install/include hello.c -Lecos_install/lib
> -Ttarget.ld -nostdlib
>
/home/brahma/limitedusers/herman/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/ar
m-elf/3.2.1/../../../../arm-elf/bin/ld:
> address 0x93124 of a.out section .bss is not within
                     ^^^^

a.out section? I thought this was an elf compiler. Or is a.out the
name of the executable?

> region ram
> collect2: ld returned 1 exit status

Anyway, google is your friend for FAQs.

http://www.google.com/search?hl=de&ie=UTF-8&q=eCos+address++of++section+.bss
+is+not+within&btnG=Suche&lr=

        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]