undefined reference to `end' in function _sbrk

mrburns mrburns@tiscalinet.it
Mon Apr 2 09:51:00 GMT 2001

Hi, I am installing on my i586 running a Linux Mandrake 7.2 a gcc
cross-compiler for Arm processor;
I configure gcc with the following options:

and I install it in the default directory /usr/local
Then I configure newlib with the option 
and install it in /usr/local ,too.
When I try to compile the 'program':


I get the following error:
/usr/local/arm-v4t-aout/lib/crt0.o(.text+0xd4): undefined reference to
/usr/local/arm-v4t-aout/lib/crt0.o(.text+0xd8): undefined reference to
/usr/local/arm-v4t-aout/lib/libc.a(syscalls.o): In function `_sbrk':
/source/newlib-1.9.0/newlib/libc/sys/arm/syscalls.c:496: undefined
reference to `end'
collect2: ld returned 1 exit status

...where's my mistake?
Thanks in advance, 
  Marco Marcello

More information about the Newlib mailing list