old-cross-binutils/ld/testsuite
H.J. Lu bcaa7b3eb9 ld/
2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>

	* 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  <hongjiu.lu@intel.com>

	* 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-04 16:45:51 +00:00
..
config ld/ 2003-05-30 13:23:25 +00:00
ld-alpha Update expected output regexps to include .eh_frame section. 2003-07-29 06:26:23 +00:00
ld-arm bfd/ 2004-09-30 17:03:53 +00:00
ld-auto-import Test the auto importing direct from a dll functionality. 2002-12-18 16:05:10 +00:00
ld-bootstrap * ld-bootstrap/bootstrap.exp: Handle timestamps in more pe targets. 2004-06-26 04:20:14 +00:00
ld-cdtest PR 47. 2004-04-08 14:20:05 +00:00
ld-checks 2003-09-30 H.J. Lu <hongjiu.lu@intel.com> 2003-09-30 19:50:40 +00:00
ld-cris * ld-cris/hiddef1.d, ld-cris/hiddef1.d, ld-cris/hidrefgotplt1.s: 2004-09-07 18:32:27 +00:00
ld-crx Add LD and GAS testsuites for CRX port. 2004-09-03 14:31:41 +00:00
ld-cygwin Add new test for cygwin target: building an executable with an export table. 2003-06-02 09:11:01 +00:00
ld-d10v Adjust for objdump -d change. 2003-08-02 11:34:30 +00:00
ld-discard * ld-discard/static.d: Accept both original sym and section sym. 2004-07-02 06:46:17 +00:00
ld-elf * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB. 2004-07-02 11:25:54 +00:00
ld-elfcomm * ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain 2003-06-18 03:38:05 +00:00
ld-elfvers 2004-06-24 H.J. Lu <hongjiu.lu@intel.com> 2004-06-24 15:07:43 +00:00
ld-elfvsb bfd/ 2004-09-24 07:07:22 +00:00
ld-elfweak 2004-04-20 H.J. Lu <hongjiu.lu@intel.com> 2004-04-20 14:50:22 +00:00
ld-fastcall Only run tests for PE type x86 targets. 2002-11-07 08:36:04 +00:00
ld-frv bfd/ChangeLog: 2004-06-21 14:45:42 +00:00
ld-h8300 ld-h8300/h8300.exp: Addition of new test case to check relaxation for H8S target. 2004-07-27 16:47:02 +00:00
ld-i386 binutils/ 2004-09-22 07:24:14 +00:00
ld-ia64 bfd/ 2004-05-11 17:08:38 +00:00
ld-linkonce 2002-10-12 H.J. Lu (hjl@gnu.org) 2002-10-12 15:40:13 +00:00
ld-m68hc11 * ld-m68hc11/link-hcs12.d: New test. 2003-05-13 19:11:45 +00:00
ld-mips-elf * ld-mips-elf/reloc-merge-lo16.{s,d,ld}: New test. 2004-07-08 15:43:00 +00:00
ld-mmix 2004-05-10 John Paul Wallington <jpw@gnu.org> 2004-05-10 03:57:04 +00:00
ld-pe gas/testsuite/ 2004-09-29 13:36:22 +00:00
ld-powerpc 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
ld-s390 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
ld-scripts ld/ 2004-10-04 16:45:51 +00:00
ld-selective * ld-elfvsb/main.c: Ensure visibility_def and visibility_func are 2004-06-18 15:41:47 +00:00
ld-sh binutils/ 2004-09-22 07:24:14 +00:00
ld-shared bfd/ 2004-05-11 17:08:38 +00:00
ld-sparc 2004-10-01 H.J. Lu <hongjiu.lu@intel.com> 2004-10-01 20:11:40 +00:00
ld-srec * ld-srec/srec.exp (run_srec_test): Remove -fgnu-linker, since GCC 2003-12-30 16:53:31 +00:00
ld-undefined PR 371 2004-10-01 10:49:08 +00:00
ld-versados Fixtypos in ChangeLogs, fix copyright dates in files 2001-03-13 06:14:29 +00:00
ld-x86-64 binutils/ 2004-09-22 07:24:14 +00:00
ld-xstormy16 Adjust for objdump -d change. 2003-08-02 11:34:30 +00:00
ld-xtensa * ld-xtensa/coalesce.exp: Skip if target is not xtensa-*-*. 2003-04-02 18:00:34 +00:00
lib * ld-sh/sh64/relax.exp: Remove stray semicolons. 2004-05-12 03:08:09 +00:00
ChangeLog ld/ 2004-10-04 16:45:51 +00:00
ChangeLog-9303 Split ChangeLog files. 2004-01-02 11:16:21 +00:00