avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] Re: [avr-libc-dev] noinitdata section ?


From: daniel_laptop
Subject: [avr-gcc-list] Re: [avr-libc-dev] noinitdata section ?
Date: Mon, 02 Sep 2002 03:02:07 +1200

Joerg Wunsch wrote:

> As Theodore A. Roth wrote:
>
> > Is it possible to tell the linker where to put the .noinit section
> > (i.e. at an address in a device that is memory mapped into the
> > external sram space)?
>
> avr-gcc ... -Wl,--section-start=.noinit=0x802000 ...
>
> The only crock is that the 0x800000 offset used for normal .data
> variables needs to be added manually.  (The linker complains about
> your .noinit getting outside of the data region otherwise.)
>

Looking at map files this also moves "__heap_start" to (0x802000 + size of
noinit).
Is it possible to set __heap_start to __bss_end at link time ?
or does it have to be done at runtime with __malloc_heap_start

Thanks
Daniel


avr-gcc-list at http://avr1.org



reply via email to

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