Don't call compare_section in case of by_none
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 1 Aug 2012 01:03:47 +0000 (01:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 1 Aug 2012 01:03:47 +0000 (01:03 +0000)
commitb2e4da5a836b3d5246dc2fa183e18c1f63232490
tree7494febf76283b2d95c98e8c8d182da3b95df21e
parent488916061e57e6b83b8229475789a78b8f7b5fb1
Don't call compare_section in case of by_none

PR ld/14156
* ldlang.c (wild_sort): Don't call compare_section in case of
by_none.

* scripttempl/elf.sc: Add SORT_NONE to .init and .fini sections.
* scripttempl/elf32msp430.sc: Likewise.
* scripttempl/elf32msp430_3.sc: Likewise.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfxtensa.sc: Likewise.
ld/ChangeLog
ld/ldlang.c
ld/scripttempl/elf.sc
ld/scripttempl/elf32msp430.sc
ld/scripttempl/elf32msp430_3.sc
ld/scripttempl/elfd10v.sc
ld/scripttempl/elfd30v.sc
ld/scripttempl/elfxtensa.sc