Tidy linker scripts

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Thu Oct 1 04:09:00 GMT 2009


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



More information about the Binutils mailing list