This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Tidy linker scripts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]