diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-08-01 01:03:47 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-08-01 01:03:47 +0000 |
commit | b2e4da5a836b3d5246dc2fa183e18c1f63232490 (patch) | |
tree | 7494febf76283b2d95c98e8c8d182da3b95df21e /ld/scripttempl/elf32msp430_3.sc | |
parent | 488916061e57e6b83b8229475789a78b8f7b5fb1 (diff) | |
download | binutils-gdb-b2e4da5a836b3d5246dc2fa183e18c1f63232490.tar.gz |
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.
Diffstat (limited to 'ld/scripttempl/elf32msp430_3.sc')
-rw-r--r-- | ld/scripttempl/elf32msp430_3.sc | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc index c730c5d826f..0ddcf0f4914 100644 --- a/ld/scripttempl/elf32msp430_3.sc +++ b/ld/scripttempl/elf32msp430_3.sc @@ -75,17 +75,17 @@ SECTIONS .text : { ${RELOCATING+. = ALIGN(2);} - *(.init) - *(.init0) /* Start here after reset. */ - *(.init1) - *(.init2) - *(.init3) - *(.init4) - *(.init5) - *(.init6) /* C++ constructors. */ - *(.init7) - *(.init8) - *(.init9) /* Call main(). */ + *(SORT_NONE(.init)) + *(SORT_NONE(.init0)) /* Start here after reset. */ + *(SORT_NONE(.init1)) + *(SORT_NONE(.init2)) + *(SORT_NONE(.init3)) + *(SORT_NONE(.init4)) + *(SORT_NONE(.init5)) + *(SORT_NONE(.init6)) /* C++ constructors. */ + *(SORT_NONE(.init7)) + *(SORT_NONE(.init8)) + *(SORT_NONE(.init9)) /* Call main(). */ ${CONSTRUCTING+ __ctors_start = . ; } ${CONSTRUCTING+ *(.ctors) } @@ -100,17 +100,17 @@ SECTIONS *(.text.*) ${RELOCATING+. = ALIGN(2);} - *(.fini9) - *(.fini8) - *(.fini7) - *(.fini6) /* C++ destructors. */ - *(.fini5) - *(.fini4) - *(.fini3) - *(.fini2) - *(.fini1) - *(.fini0) /* Infinite loop after program termination. */ - *(.fini) + *(SORT_NONE(.fini9)) + *(SORT_NONE(.fini8)) + *(SORT_NONE(.fini7)) + *(SORT_NONE(.fini6)) /* C++ destructors. */ + *(SORT_NONE(.fini5)) + *(SORT_NONE(.fini4)) + *(SORT_NONE(.fini3)) + *(SORT_NONE(.fini2)) + *(SORT_NONE(.fini1)) + *(SORT_NONE(.fini0)) /* Infinite loop after program termination. */ + *(SORT_NONE(.fini)) ${RELOCATING+ _etext = . ; } } ${RELOCATING+ > text} |