From eda680f805f57e7acae71350b98c9cfabbda9a58 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 10 Jul 2012 06:50:57 +0000 Subject: 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. --- ld/NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/NEWS') diff --git a/ld/NEWS b/ld/NEWS index 8701c5c..06f1f77 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -1,5 +1,7 @@ -*- text -*- +* Added SORT_NONE to the linker script language to disable section sorting. + * Add a linker-provided symbol when producing ELF output, '__ehdr_start' to point to the ELF file header (and nearby program headers) in the program's memory image. -- cgit v1.1