Re: [arm-gnu] 2007q3 link error: undefined reference to '_sbrk' etc.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] 2007q3 link error: undefined reference to '_sbrk' etc.



Zhonghua wrote:
> Hi,
>     When using 2007q3 on linux, some error message display:
>  
> 
> arm-2007q3/arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
> sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
> arm-2007q3/arm-none-eabi/lib/libc.a(lib_a-sysgetpid.o): In function `getpid':
> sysgetpid.c:(.text+0x4): undefined reference to `_getpid'
> arm-2007q3/arm-none-eabi/lib/libc.a(lib_a-times.o): In function `_times_r':
> times.c:(.text+0x8): undefined reference to `_times'
> arm-2007q3/arm-none-eabi/lib/libc.a(lib_a-writer.o): In function `_write_r':
> writer.c:(.text+0x20): undefined reference to `_write'

> What I should do? Could you tell me.

you need to provide implementations of those functions that are suitable for
your board.   The linker scripts provided with the toolchain show how that may
be achieved.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery