This is the mail archive of the newlib@sources.redhat.com 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]

undefined reference to `end' in function _sbrk


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:
  --target=arm-v4t-aout
  --with-gnu-as
  --with-gnu-ld
  --disable-threads
  --with-newlib
  --with-headers=/usr/local/arm-v4t-aout/include

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

main()
{}

I get the following error:
/usr/local/arm-v4t-aout/lib/crt0.o(.text+0xd4): undefined reference to
`_bss_start__'
/usr/local/arm-v4t-aout/lib/crt0.o(.text+0xd8): undefined reference to
`_bss_end__'
/usr/local/arm-v4t-aout/lib/libc.a(syscalls.o): In function `_sbrk':
/home/marco/tesi/newlib/build/arm-v4t-aout/newlib/libc/sys/arm/../../../../../..
/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


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