This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: fix bug with loadaddr and load regions
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 29 Aug 2006 10:56:25 +0930
- Subject: Re: fix bug with loadaddr and load regions
- References: <44EED662.8040506@codesourcery.com>
On Fri, Aug 25, 2006 at 11:52:18AM +0100, Nathan Sidwell wrote:
> I fell over a problem with using a load region and loadaddr, to create a
> romable image. With
> .data { data_load = LOADADDR(.data); ... } >ram AT>rom
> I found that data_load's value became load address + execution address,
> because it was interpreted as a data-relative value. The same problem
> didn't manifest with
> .data : AT(EXPR) { data_load = LOADADDR(.data); ...} >ram
> but of course here I have to calculate EXPR myself.
I think this has been fixed by my 2006-08-23 fold_name change.
I committed your new testcases.
--
Alan Modra
IBM OzLabs - Linux Technology Centre