This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
_sbrk: undefined reference to `end' problem
- From: "lavarini\ dot roberto\ at libero\ dot it" <lavarini dot roberto at libero dot it>
- To: "newlib" <newlib at sources dot redhat dot com>
- Date: Tue, 27 May 2008 14:00:57 +0200
- Subject: _sbrk: undefined reference to `end' problem
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