Hi guys,
I am getting erros when I tried to compile the ARM7_LPC2368_Eclipse demo using
arm-none-eabi (from Codesourcery).
They appear to be “linker” related, because all the files compiled ok.
First one:
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld.exe: error: no memory region specified for loadable section `.ARM.exidx’
I tried to solve it (or at least, make the code compile) adding the following lines to the lpc2368.ld file (I found googling around):
/* .ARM.exidx is sorted, so has to go in its own output section. */
__exidx_start = .;
.ARM.exidx :
{
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >ram
__exidx_end = .;
I have no idea if this is ok, but at least I dont get this error anymore…
But, now I got the following errors:
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-sbrkr.o): In function `_sbrk_r’:
sbrkr.c:(.text+0xc): undefined reference to `_sbrk’
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-writer.o): In function `_write_r’:
writer.c:(.text+0x10): undefined reference to `_write’
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-closer.o): In function `_close_r’:
closer.c:(.text+0xc): undefined reference to `_close’
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-fstatr.o): In function `_fstat_r’:
fstatr.c:(.text+0xe): undefined reference to `_fstat’
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-isattyr.o): In function `_isatty_r’:
isattyr.c:(.text+0xc): undefined reference to `_isatty’
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-lseekr.o): In function `_lseek_r’:
lseekr.c:(.text+0x10): undefined reference to `_lseek’
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/lib/thumblibc.a(lib_a-readr.o): In function `_read_r’:
readr.c:(.text+0x10): undefined reference to `_read’
I am guessing it´s library related because of printf or something like it… What do I have to include explicitely ?
On the error messages, there´s references to libc.a , I tried to explicitely define -lc (no result). However in the demo projetct there is no explicit referente to any library.
Any sugestions?
THanks!
Sergio P. SIder