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 Sep 28, 2009, at 9:08 AM, Alan Modra wrote:


On Sun, Sep 27, 2009 at 12:09:43PM -0400, Christopher Faylor wrote:
* ldlang.c (lang_size_sections_1): Always force output vma to zero for
relocatable sections.
(lang_size_sections_1): Revert previous COFF-only accommodation for
relocatable sections.

The above patch exposed bugs in the cr16, crx, and tic54 ld -r linker scripts. Rather than fix the problems it's simpler to just not use a script for ld -r, so that's what I've done. Also, we now have no need to set section addresses to zero in any of the ld -r scripts.

Do we really want that ? That breaks backward compatibility as I now that some of our customers use
'ld -r' with linker scripts. They use scripts to merge some sections.


Tristan.


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