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


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

Re: Problem with malloc()


Hi,

Yep, I've read thos articles. They're good but seems a bit outdated with
regard to configuration etc. (?)

Anyway, my problem turned out to be the Flash tool: it messed up the ROM
area that contains initial .data values. That's why the av_ array was
corrupt.


/Stefan 
 

> -----Ursprungligt meddelande-----
> Från: newlib-owner@sources.redhat.com 
> [mailto:newlib-owner@sources.redhat.com] För Moser, Dan (GE Trans)
> Skickat: 12 juli 2005 17:34
> Till: Stefan Karlsson; newlib@sourceware.org
> Ämne: RE: Problem with malloc()
> 
> Stefan,
> 
> I got my newbie start with newlib by using the following two 
> articles by Bill Gatliff and then a couple hours of playing 
> around to get the basic pieces in place for my system.
> 
> http://www.embedded.com/story/OEG20011220S0058
> http://www.embedded.com/story/OEG20020103S0073
> 
> Dan Moser
> 
> 
> -----Original Message-----
> From: newlib-owner@sources.redhat.com
> [mailto:newlib-owner@sources.redhat.com]On Behalf Of Stefan Karlsson
> Sent: Tuesday, July 12, 2005 11:29 AM
> To: newlib@sourceware.org
> Subject: Problem with malloc()
> 
> 
> 
> I have built a PowerPC executable with Newlib (+ libnosys.a). 
> My problem is that malloc() doesn't work. As far as I can see 
> the problem is that the av_ array used by _malloc_r() 
> contains garbage.
> 
> Is there some initialization that needs to be done?
> 
> 
> /Stefan (newbie)
> 
> 


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