From bcaa7b3eb9571ac0699402a62bf1bfae3a263413 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 4 Oct 2004 16:45:51 +0000 Subject: ld/ 2004-10-04 H.J. Lu * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and --sort-section name|alignment. * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and --sort-section name|alignment. * ld.h (sort_type): New enum. (wildcard_spec): Change the type of `sorted' to sort_type. * ldgram.y (SORT): Removed. (SORT_BY_NAME): Added. (SORT_BY_ALIGNMENT): Added. (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and SORT_BY_ALIGNMENT. (input_section_spec_no_keep): Updated `sorted'. (statement): Replace SORT with SORT_BY_NAME. * ldlang.c (compare_section): New function to compare 2 sections with different sorting schemes. (wild_sort): Updated. Use compare_section. (update_wild_statements): New function. (lang_process): Call update_wild_statements before map_input_to_output_sections. * ldlex.l (SORT_BY_NAME): New. (SORT_BY_ALIGNMENT): New. (SORT): Return SORT_BY_NAME. * ldmain.c (sort_section): New. Defined. (main): Initialize it to none. * lexsup.c (option_values): Add OPTION_SORT_SECTION. (ld_options): Add an entry for OPTION_SORT_SECTION. (parse_args): Handle OPTION_SORT_SECTION. * mri.c (mri_draw_tree): Updated `sorted'. ld/testsuite/ 2004-10-04 H.J. Lu * ld-scripts/sort.exp: New file for section sorting tests. * ld-scripts/sort_b_a.d: Likewise * ld-scripts/sort_b_a.s: Likewise * ld-scripts/sort_b_a.t: Likewise * ld-scripts/sort_b_a_a-1.d: Likewise * ld-scripts/sort_b_a_a-2.d: Likewise * ld-scripts/sort_b_a_a-3.d: Likewise * ld-scripts/sort_b_a_a.t: Likewise * ld-scripts/sort_b_a_n-1.d: Likewise * ld-scripts/sort_b_a_n-2.d: Likewise * ld-scripts/sort_b_a_n-3.d: Likewise * ld-scripts/sort_b_a_n.t: Likewise * ld-scripts/sort_b_n.d: Likewise * ld-scripts/sort_b_n.s: Likewise * ld-scripts/sort_b_n.t: Likewise * ld-scripts/sort_b_n_a-1.d: Likewise * ld-scripts/sort_b_n_a-2.d: Likewise * ld-scripts/sort_b_n_a-3.d: Likewise * ld-scripts/sort_b_n_a.t: Likewise * ld-scripts/sort_b_n_n-1.d: Likewise * ld-scripts/sort_b_n_n-2.d: Likewise * ld-scripts/sort_b_n_n-3.d: Likewise * ld-scripts/sort_b_n_n.t: Likewise * ld-scripts/sort_n_a-a.s: Likewise * ld-scripts/sort_n_a-b.s: Likewise * ld-scripts/sort_no-1.d: Likewise * ld-scripts/sort_no-2.d: Likewise * ld-scripts/sort_no.t: Likewise --- ld/testsuite/ChangeLog | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'ld/testsuite/ChangeLog') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index dd58a7d..7cba4a4 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,34 @@ +2004-10-04 H.J. Lu + + * ld-scripts/sort.exp: New file for section sorting tests. + * ld-scripts/sort_b_a.d: Likewise + * ld-scripts/sort_b_a.s: Likewise + * ld-scripts/sort_b_a.t: Likewise + * ld-scripts/sort_b_a_a-1.d: Likewise + * ld-scripts/sort_b_a_a-2.d: Likewise + * ld-scripts/sort_b_a_a-3.d: Likewise + * ld-scripts/sort_b_a_a.t: Likewise + * ld-scripts/sort_b_a_n-1.d: Likewise + * ld-scripts/sort_b_a_n-2.d: Likewise + * ld-scripts/sort_b_a_n-3.d: Likewise + * ld-scripts/sort_b_a_n.t: Likewise + * ld-scripts/sort_b_n.d: Likewise + * ld-scripts/sort_b_n.s: Likewise + * ld-scripts/sort_b_n.t: Likewise + * ld-scripts/sort_b_n_a-1.d: Likewise + * ld-scripts/sort_b_n_a-2.d: Likewise + * ld-scripts/sort_b_n_a-3.d: Likewise + * ld-scripts/sort_b_n_a.t: Likewise + * ld-scripts/sort_b_n_n-1.d: Likewise + * ld-scripts/sort_b_n_n-2.d: Likewise + * ld-scripts/sort_b_n_n-3.d: Likewise + * ld-scripts/sort_b_n_n.t: Likewise + * ld-scripts/sort_n_a-a.s: Likewise + * ld-scripts/sort_n_a-b.s: Likewise + * ld-scripts/sort_no-1.d: Likewise + * ld-scripts/sort_no-2.d: Likewise + * ld-scripts/sort_no.t: Likewise + 2004-10-01 H.J. Lu * ld-powerpc/tls.s: Don't set tls type for undefined syms. -- cgit v1.1