gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > malloc & free not working with devkitadv

#35666 - headspin - Wed Feb 09, 2005 6:09 am

I'm guessing it's because I'm using jeffs crt0 and linkscript, but I get the following error

Quote:
devkitadvc:\devkitadv-r5-beta-3\bin\..\lib\gcc-lib\arm-agb-elf\3.2.2\..\..\..\..\arm-agb-elf\lib\thumb/interwork\libc.a(agb-sbrk.o): In function `_sbrk':
../../../../../../../../gcc-3.2.2/newlib/libc/sys/agb/agb-sbrk.c:28: undefined reference to `__appended_end'
../../../../../../../../gcc-3.2.2/newlib/libc/sys/agb/agb-sbrk.c:28: undefined reference to `__heap_limit'
../../../../../../../../gcc-3.2.2/newlib/libc/sys/agb/agb-sbrk.c:28: undefined reference to `__appended_start'
collect2: ld returned 1 exit status


Any ideas?[/quote]
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#35667 - headspin - Wed Feb 09, 2005 6:36 am

I seem to get the same error using any functions from stdio.h or stdlib.h
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#36469 - Piratero - Mon Feb 21, 2005 10:30 pm

do you get the same error if you were to update to devkitarm? http://www.devkit.tk/
_________________
http://mrkotfw.ribrdb.com/

#36515 - headspin - Wed Feb 23, 2005 4:45 am

Good point... I guess it's time to take the plunge and move to it. Anything I should know, like will I have to modify my code much? Can I still use Jeff's crt0 and linkscript?
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#36518 - tepples - Wed Feb 23, 2005 5:50 am

A crt0 + linker script based on Jeff F's comes with DevKit Advance R4 and R5b3 and all versions of devkitARM. However, the newer versions tend to refactor built-in interrupt dispatch support (IntrTable stuff) into a separate file. That said, I didn't notice much of a change because I write my own ISRs to the metal.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.