This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

_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


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