_sbrk: undefined reference to `end' problem
lavarini.roberto@libero.it
lavarini.roberto@libero.it
Wed May 28 08:01:00 GMT 2008
Hi all,
I'm using arm-elf-gcc, compiled with gcc-4.2, and newlib-1.16 to build an application for a LPC2136 board. In the linking phase I obtain the following error:
C:\arm-elf\arm-elf\lib\libc.a(lib_a-syscalls.o): In function `_sbrk':
undefined reference to `end'
In my .ld file there isn't an `end' declaration. But if I put the following code at the end of .ld file, the compilation terminate correctly, but the application does not function correctly:
PROVIDE (end = .);
I don't know the `end' address to insert in the declaration. Can anybody help me?
Thanks
Roberto
More information about the Newlib
mailing list