Add SORT_NONE and don't sort sort .init/.fini sections
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 10 Jul 2012 06:50:57 +0000 (06:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 10 Jul 2012 06:50:57 +0000 (06:50 +0000)
commiteda680f805f57e7acae71350b98c9cfabbda9a58
tree5198a27a8a5b8a09404620bca38bca5d7f01772c
parentbc9ad2e430bc419d4e37555d5d70bb6bb4fac341
Add SORT_NONE and don't sort sort .init/.fini sections

ld/

PR ld/14156
* NEWS: Mention SORT_NONE.

* ld.h (sort_type): Add by_none.

* ld.texinfo: Document SORT_NONE.

* ldgram.y: Handle SORT_NONE.

* ldlang.c (update_wild_statements): Handle by_none.  Don't
sort .init/.fini sections.

* ldlex.l: Add SORT_NONE.

ld/testsuite/

PR ld/14156
* ld-elf/fini0.s: New file.
* ld-elf/fini1.s: Likewise.
* ld-elf/fini2.s: Likewise.
* ld-elf/fini3.s: Likewise.
* ld-elf/finin.s: Likewise.
* ld-elf/foo0.s: Likewise.
* ld-elf/foo1.s: Likewise.
* ld-elf/foo2.s: Likewise.
* ld-elf/foo3.s: Likewise.
* ld-elf/foon.s: Likewise.
* ld-elf/init0.s: Likewise.
* ld-elf/init1.s: Likewise.
* ld-elf/init2.s: Likewise.
* ld-elf/init3.s: Likewise.
* ld-elf/initn.s: Likewise.
* ld-elf/pr14156a.d: Likewise.
* ld-elf/pr14156b.d: Likewise.
* ld-elf/pr14156c.d: Likewise.
* ld-elf/pr14156c.t: Likewise.
27 files changed:
ld/ChangeLog
ld/NEWS
ld/ld.h
ld/ld.texinfo
ld/ldgram.y
ld/ldlang.c
ld/ldlex.l
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/fini0.s [new file with mode: 0644]
ld/testsuite/ld-elf/fini1.s [new file with mode: 0644]
ld/testsuite/ld-elf/fini2.s [new file with mode: 0644]
ld/testsuite/ld-elf/fini3.s [new file with mode: 0644]
ld/testsuite/ld-elf/finin.s [new file with mode: 0644]
ld/testsuite/ld-elf/foo0.s [new file with mode: 0644]
ld/testsuite/ld-elf/foo1.s [new file with mode: 0644]
ld/testsuite/ld-elf/foo2.s [new file with mode: 0644]
ld/testsuite/ld-elf/foo3.s [new file with mode: 0644]
ld/testsuite/ld-elf/foon.s [new file with mode: 0644]
ld/testsuite/ld-elf/init0.s [new file with mode: 0644]
ld/testsuite/ld-elf/init1.s [new file with mode: 0644]
ld/testsuite/ld-elf/init2.s [new file with mode: 0644]
ld/testsuite/ld-elf/init3.s [new file with mode: 0644]
ld/testsuite/ld-elf/initn.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr14156a.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr14156b.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr14156c.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr14156c.t [new file with mode: 0644]