This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to handle overlapping RAM and ROM addreses ?
- From: Stelian Pop <stelian at popies dot net>
- To: Michael Hennebry <hennebry at web dot cs dot ndsu dot nodak dot edu>
- Cc: binutils at sourceware dot org
- Date: Wed, 13 Feb 2008 22:02:07 +0100
- Subject: Re: How to handle overlapping RAM and ROM addreses ?
- References: <20080213113755.X28471-100000@web.cs.ndsu.nodak.edu>
Le mercredi 13 fÃvrier 2008 Ã 11:39 -0600, Michael Hennebry a Ãcrit :
> On Wed, 13 Feb 2008, Stelian Pop wrote:
> > I'm working on a binutils/gcc port for a custom microcontroller. This
> > microcontroller has separate buses for RAM and ROM, and uses different
> > instructions to address the ROM and the RAM.
> >
> > How can I handle this in ld ? I could give a fake starting offset to one
> > of the two sections in order to make them not overlap, but maybe there
> > is a better way to handle this.
> >
> > Does this problem already exist with one of the supported
> > architectures ?
>
> Yup.
> AVRs have three memory spaces and that is how the problem is handled.
Thanks, this is exactly what I needed.
Stelian.
--
Stelian Pop <stelian@popies.net>