[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] put static variable in a specific section
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] put static variable in a specific section |
Date: |
Sat, 5 May 2007 08:30:01 +0200 |
User-agent: |
Mutt/1.5.11 |
(This probably better belongs into address@hidden)
As Yann GOUY wrote:
> I have tried to add other attributes like 'common/nocommon' and
> unused but it failed. the only way to have the variable allocated
> is to suppress the static keyword.
The question is why do you want to put them into specific sections in
the first place? I remember inventing RAM sections `on the fly'
(i.e. without also modifying the linker script) never really worked,
as somehow, the linker defaulted any unknown section to ROM.
So the key would be to use a modified linker script.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)