XScale Cygwin Newlib 1.10 application build issues.

Ben Bodley BBodley@navman.com
Wed Nov 27 15:20:00 GMT 2002

Gidday all,

I've built a simple toolchain for Xscale development on a custom board (no

binutils build:

../binutils-20021117-1/configure --host=i686-pc-cygwin --target=xscale-elf
--prefix=/xscale --norecursion

gcc build:

--host=i686-pc-cygwin --enable-languages=c,c++ --with-included-gettext
--enable-shared --enable-threads --target=xscale-elf --with-newlib
--prefix=/xscale -v --norecursion

newlib build:

../newlib-1.10.0/configure --host=i686-pc-cygwin --target=xscale-elf
--prefix=/xscale -v --norecursion

These commands created a simple xscale toolchain, and when I compile a
program all is well. The problem is I have not provided my own sbrk(),
open(), etc functions! The program itself works on the target, but I need to
provide a custom sbrk() implementation to fix a dynamic memory allocation
issue with our hardware.

I have added sbrk(), open(), getpid(), etc functions into a platform layer,
and they are compiled in, but the newlib malloc() is not calling my sbrk()

What am I forgetting here???? Thankyou for any assistance.



Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

More information about the crossgcc mailing list