This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Tidy linker scripts
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: binutils at sourceware dot org
- Date: Thu, 1 Oct 2009 00:09:12 -0400
- Subject: Re: Tidy linker scripts
- References: <20090913160312.GA11300@ednor.casa.cgf.cx> <20090913160931.GA19246@ednor.casa.cgf.cx> <20090921214900.GA17794@ednor.casa.cgf.cx> <4AB84B22.7010901@gmail.com> <20090923203325.GA4166@ednor.casa.cgf.cx> <20090923215610.GB28784@bubble.grove.modra.org> <20090927160942.GA8212@ednor.casa.cgf.cx> <20090928070820.GJ18973@bubble.grove.modra.org> <20090928152727.GB19220@ednor.casa.cgf.cx> <20090929022159.GP18973@bubble.grove.modra.org>
On Tue, Sep 29, 2009 at 11:51:59AM +0930, Alan Modra wrote:
>On Mon, Sep 28, 2009 at 11:27:27AM -0400, Christopher Faylor wrote:
>> Should these changes now be part of the next release?
>
>The patch for 6945 and the followup for 10634 are really only
>papering over the underlying problem. ld should not care about
>section vmas in relocatable object files, but given that no one has
>time and inclination to go over all the coff backends, I think it's
>reasonable to make 2.20 ld -r produce zero-based sections just like
>gas.
>
>Hmm, perhaps better with the following so that scripts can set a
>non-zero vma if so desired.
>
> * ldlang.c (lang_size_sections_1): Allow scripts to specify a
> non-zero vma even when relocatable.
Huh. I was wondering about that when I implemented your first
suggestion. Sounds right to me.
cgf