This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XScale Cygwin Newlib 1.10 application build issues.


Gidday all,


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


binutils build:

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

gcc build:

../gcc-3.2-3/configure
--with-gcc-version-trigger=/usr/src/gcc-3.2-3/gcc/version.c
--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()
implementation.. 


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


Cheers,

Ben

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]