This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld lma assignment
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sourceware dot org
- Date: Tue, 22 Aug 2006 11:46:48 -0700
- Subject: Re: ld lma assignment
- References: <20060726050914.GK6872@bubble.grove.modra.org> <20060822073344.GB23819@bubble.grove.modra.org>
On Tue, Aug 22, 2006 at 05:03:44PM +0930, Alan Modra wrote:
> On Wed, Jul 26, 2006 at 02:39:14PM +0930, Alan Modra wrote:
> > While playing with overlays recently, I noticed an annoying linker
> > script requirement. An output section following an overlay must have
> > its lma specified (with AT or AT>). As must any section following one
> > with an lma adjustment, because ld defaults to setting lma equal to
> > vma and this may cause lma overlap.
>
> Fixes doco for this change, and warns on backward movement of VMA
> unless accompanied with an explicit LMA assignment. I guess I should
> have added the news item when I committed the first patch to raise
> awareness of the change in default lma. Apologies for that, I wasn't
> trying to slip a change in under the radar! I still feel it's a good
> change for 2.18, one that shouldn't affect too many scripts, and those
> that it does are easily fixed.
>
I tried AT (.). It seems to generate different outputs comparing with
the old linker.
H.J.