[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #19445] _malloc_heap_end does not follow _heap_end o

From: anonymous
Subject: [avr-libc-dev] [bug #19445] _malloc_heap_end does not follow _heap_end on m2561
Date: Thu, 29 Mar 2007 18:02:25 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070309 Firefox/


                 Summary: _malloc_heap_end does not follow _heap_end on m2561
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Thursday 03/29/2007 at 18:02 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unknown
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



In a makefile I have (as per the avr libc docs):

override LDFLAGS        =
-lm -u vfprintf -u vfscanf -lprintf_flt -lscanf_flt -lm -lc

On an mega2561 w/ 8k internal, and 32k external.  Been chasing apparent
memory corruption for a couple weeks.

Ran avr-nm -n today, to find:

00803c0c D CommandSystemParamsSize
00803c0e D __thenan_sf
00803c16 D __malloc_margin
00803c18 D __malloc_heap_start
00803c1a D __malloc_heap_end
00803c1c b ResetSrc
00803c1c B __bss_start
00803c1c D __data_end
00803c1c D _edata
00803c1d b Disp3Ct
00803c1f b LimitStateArray
00805ddc B _FF_ScanAddr
00805de0 B __iob
00805de6 B __brkval
00805de8 B __flp
00805dea B __bss_end
00805dea A __heap_start
00805dea A _end
0080a0ff A __heap_end
00810000 A __eeprom_end

I'm looking at the avrlibc docs right now, and they seem to indicate that my
makefile should be instructing both heap_end and malloc_heap_end to be at

Then last night I added:

override LDFLAGS        =
=0x8080ff,-Map=$(PRG).map,--cref -lm -u vfprintf -u vfscanf -lprintf_flt
-lscanf_flt -lm -lc

And the memory corruption appears to have gone away.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]