This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Newlib : Malloc & PPC
- From: Frank Juergen-r58616 <Juergen dot Frank at freescale dot com>
- To: newlib at sources dot redhat dot com
- Date: Wed, 11 Jan 2006 11:13:30 +0100
- Subject: Newlib : Malloc & PPC
Hi !!
I have a problem with the malloc function of newlib. Possible someone can help me out ...
If I call malloc in my program it returns a value of 0, if I compile the program with -msim (for the simulator). In case I compile the same program for an real embedded system (PowerPc based evaluation board). The system crashed if I call the malloc function.
I didn't do anything special for malloc, so I'm wondering from where the malloc get the info about the memory pool (size location etc). I can imagine I should set these values in the linker script, but I didn't found any info about this.
So what should/can I do ?
Juergen