This is the mail archive of the ecos-discuss@sourceware.org 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: what this error while compiling aplication??


On Wed, Dec 31, 2008 at 7:46 AM, abhishek srivastava
<just_abhi22@yahoo.co.in> wrote:
> sirs,
> could any one tell me why i am getting this error, while compiling my application, which is just of 3K?? my RAM size is 32K ansd ROM and ROM is 512K

Dude, you need to *look* *at* *the* *message* *on* *your*
*television*. And not mindlessly post it to the list.

> $ make
> arm-eabi-gcc -nostartfiles -L/ecos-d/workdir/ecos/ecos_install/lib -Wl,--gc-sect
> ions -Wl,--Map -Wl,basic1.map -o basic1 basic1.o -Ttarget.ld -nostdlib
> /opt/ecos/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/b
> in/ld: address 0x40008c14 of basic1 section .bss is not within region ram
> /opt/ecos/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/b
> in/ld: address 0x40008c14 of basic1 section .bss is not within region ram
> collect2: ld returned 1 exit status
> make: *** [basic1] Error 1

0x8c14 is not 3K. It is 32K and change.

You may have 3K of code, but clearly also some declared
arrays/variable or some such that take up lots of BSS space.

Or you may just have put BSS space at 32K. Whatever.

You broke it. You get to keep both pieces.

Jesper

-- 
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]