Tidy linker scripts
Tristan Gingold
gingold@adacore.com
Mon Sep 28 07:41:00 GMT 2009
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.
More information about the Binutils
mailing list