|
Message
From: Mark<jarvin@e...>
Date: Tue Nov 27 17:02:30 CET 2007
Subject: [openrisc] What is the DYNAMIC_EXECUTION , COMPLEX_EXECUTION,
and SIMPLE_EXECUTION?
Dimitrios Orfanos wrote: > When I try to compile it with the command: > "or32-elf-gcc -o another another.c " > I take the following message: > "/home/dimitrios/drp-0.6/toolchain/install/bin/../lib/gcc/or32-elf/4.2.1/../../../../or32-elf/lib/libc.a(lib_a-sbrkr.o): > In function `_sbrk_r': > /home/dimitrios/drp-0.6/toolchain/build/newlib-1.15.0.elf/or32-elf/newlib/libc/reent/../../../../../../src/newlib-1.15.0/newlib/libc/reent/sbrkr.c:60: > undefined reference to `_sbrk' > collect2: ld returned 1 exit status > "
It's a hack, but I found the following works:
or32-elf-gcc -o another another.c ~/work/drp-0.6/toolchain/build/newlib-1.15.0/or32-elf/libgloss/or32/libor32.a
You can also use "sbrk.o" in place of "libor32.a" above.
I've not got time at the moment to look into patching the toolchain so that this isn't necessary, but if somebody sends me a patch I'll gladly post an updated toolchain.
|
 |