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

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

Re: [avr-gcc-list] [Fwd: Re: Strings in ROM]


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] [Fwd: Re: Strings in ROM]
Date: Wed, 18 Mar 2009 07:22:02 +0100 (MET)

Andy Warner <address@hidden> wrote:

> I think this is the linker complaining that you're jamming text and
> data into the same section.

Correct.  It would spit out similar complaints if you tried to abuse
..text in place of .progmem.  The reason why it works `out of the box'
for .progmem is that the default linker scripts already handle this
section name.

The correct way would be to use two different (input) linker sections,
like .test1.text and .test1.data, and combine these into a single
output section in the linker script (as Eric already suggested).  That
way, you could also place the required ALIGN(2) directive after
placing the .test1.data part (see the default linker script, and how
it handles .progmem).

(Btw., Robert, please reply to an existing message rather than
starting a new thread for each followup.)
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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