undefined reference to `end'in function _sbrk
Marco
marco.marcello@tin.it
Tue Apr 3 07:59: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:
--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
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list