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 Mon, Sep 28, 2009 at 04:38:20PM +0930, 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.
>
>	* scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
>	* scripttempl/elf32cr16c.sc: Likewise.
>	* scripttempl/elf32crx.sc: Likewise.
>	* scripttempl/tic54xcoff.sc: Likewise.
>	* scripttempl/aix.sc: Delete ${RELOCATING-0}.
>	* scripttempl/avr.sc: Likewise.
>	* scripttempl/elf32msp430.sc: Likewise.
>	* scripttempl/elf32msp430_3.sc: Likewise.
>	* scripttempl/elf32sh-symbian.sc: Likewise.
>	* scripttempl/elf_chaos.sc: Likewise.
>	* scripttempl/elfi370.sc: Likewise.
>	* scripttempl/nw.sc: Likewise.
>	* scripttempl/psos.sc: Likewise.
>	* scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
>	* scripttempl/elf.sc: Likewise.
>	* scripttempl/elf64hppa.sc: Likewise.
>	* scripttempl/elfd10v.sc: Likewise.
>	* scripttempl/elfd30v.sc: Likewise.
>	* scripttempl/elfm68hc11.sc: Likewise.
>	* scripttempl/elfm68hc12.sc: Likewise.
>	* scripttempl/elfmicroblaze.sc: Likewise.
>	* scripttempl/elfxtensa.sc: Likewise.
>	* scripttempl/iq2000.sc: Likewise.
>	* scripttempl/mep.sc: Likewise.
>	* scripttempl/xstormy16.sc: Likewise.

Should these changes now be part of the next release?

cgf


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