Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Some problems with undefined reference to `__aeabi_unwind_cpp_*'



On Fri, Jan 29, 2010 at 11:03:00PM +0100, Julien Iguchi-Cartigny wrote:
> Hi Carlos,
> 
> It's maybe an error but I don't understand something. I found the
> documentation about the libc here:
> 
> arm-2009q3/share/doc/arm-arm-none-eabi/html/libc/index.html
> 
> And this documentation is about newlib. But it seems it is eglibc
> which is used in codesourcery arm lite edition, I'm right ?

No, EGLIBC is used in arm-none-linux-gnueabi Lite toolchains.  Newlib
is used in arm-none-eabi Lite toolchains.

> > I've still a problem, but it seems related to eglibc.
> >
> > samples/example_terminal_eb40a/build/at91-debug-ice/terminal_irq.o:samples/example_terminal_eb40a/terminal_irq.s:41:
> > undefined reference to `terminal_1'
> > /home/kartoch/works/embedded/tools/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o):
> > In function `_sbrk_r':
> > sbrkr.c:(.text+0x18): undefined reference to `_sbrk'

Please look at the sample linker scripts provided with Sourcery G++
Lite.  You need to link in a hosting library, probably
libcs3unhosted.a - unless you need _write to work.

-- 
Daniel Jacobowitz
CodeSourcery