Boehm GC on NDS
Posted: Mon Jun 29, 2009 9:21 pm
I'm trying to use boehm gc with my NDS. I've compiled it with:
Works fine, except that I receive this error when compiling my ELF:
"Googling it", I found that "__stack_base__" seems to be mandatory and is defined by newlib's crt0.o (which is not used by devkitARM). How can I solve it? Is it safe to add a .S with this symbol defined? Isn't it possible to use boehm gc?
Code: Select all
sh ../configure --host=arm-eabi --prefix=%DEVKITPRO%/libgc --target=arm-eabi --disable-shared --disable-libtool-lock --disable-dependency-tracking --disable-threads --with-cross-host=mingw32
Code: Select all
.../devkitPro/libgc/lib\libgc.a(os_dep.o): In function `GC_get_main_stack_base':
...\gc-7.0\build/../os_dep.c:941: undefined reference to `__stack_base__'
.../devkitPro/libgc/lib\libgc.a(os_dep.o): In function `GC_register_data_segments':
...\gc-7.0\build/../os_dep.c:1718: undefined reference to `end'
collect2: ld returned 1 exit status