From b2e4da5a836b3d5246dc2fa183e18c1f63232490 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 1 Aug 2012 01:03:47 +0000 Subject: 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/scripttempl/elfd10v.sc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ld/scripttempl/elfd10v.sc') diff --git a/ld/scripttempl/elfd10v.sc b/ld/scripttempl/elfd10v.sc index 1cdfbdc..dc45cdd 100644 --- a/ld/scripttempl/elfd10v.sc +++ b/ld/scripttempl/elfd10v.sc @@ -87,10 +87,10 @@ SECTIONS .text ${RELOCATING+${TEXT_START_ADDR}} : { ${RELOCATING+${TEXT_START_SYMBOLS}} - KEEP (*(.init)) - KEEP (*(.init.*)) - KEEP (*(.fini)) - KEEP (*(.fini.*)) + KEEP (*(SORT_NONE(.init))) + KEEP (*(SORT_NONE(.init.*))) + KEEP (*(SORT_NONE(.fini))) + KEEP (*(SORT_NONE(.fini.*))) *(.text) *(.text.*) /* .gnu.warning sections are handled specially by elf32.em. */ -- cgit v1.1