old-cross-binutils/ld/testsuite/ld-scripts
H.J. Lu 75ff45898c bfd/
2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR 797
	* elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
	empty sdynbss section.
	* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.

ld/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR 797
	* ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
	take take a bfd_boolean, mark_used. Ignore assert failure if
	mark_used is TRUE.
	(exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
	(exp_fold_tree_no_dot): Updated to take a bfd_boolean,
	mark_used and pass down.
	(fold_unary): Likewise.
	(fold_binary): Likewise.
	(fold_trinary): Likewise.
	(exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
	(exp_trinop): Likewise.
	(exp_unop): Likewise.
	(exp_nameop): Likewise.
	(exp_get_vma): Likewise.
	(exp_get_fill): Likewise.
	(exp_get_abs_int): Likewise.
	(fold_name): Likewise. Set SEC_KEEP in output section flags.
	(exp_mark_used_section): New.

	* ldexp.h (exp_mark_used_section): New.

	* ldlang.c (lang_output_section_statement_lookup_1): Set the
	ignored field to FALSE.
	(lang_mark_used_section_1): New.
	(lang_mark_used_section): Call lang_mark_used_section_1.
	(strip_excluded_output_sections): Call lang_mark_used_section
	and check for unused sections.
	(lang_size_sections_1): Skip an output section if it should
	be ignored.
	(lang_do_assignments_1): Likewise.
	(lang_process): Don't call lang_mark_used_section here.

	* ldlang.h (lang_output_section_statement_type): Change
	all_input_readonly to bitfield. Add ignored.

ld/testsuite/

2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR 797
	* empty-aligned.d: New file.
	* empty-aligned.exp: Likewise.
	* empty-aligned.s: Likewise.
	* empty-aligned.t: Likewise.
2005-05-17 16:43:02 +00:00
..
align.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
align.s
align.t
align2.t * ld-elf/warn1.d: Specify -Ttext. 2005-02-21 08:18:49 +00:00
align2a.d * ld-elf/warn1.d: Specify -Ttext. 2005-02-21 08:18:49 +00:00
align2a.s * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
align2b.d * ld-elf/warn1.d: Specify -Ttext. 2005-02-21 08:18:49 +00:00
align2b.s * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
align2c.d * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
align2c.s * ldexp.c (assigning_to_dot): New global flag. 2005-02-17 20:57:01 +00:00
assert.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
assert.s
assert.t
cross1.c
cross1.t
cross2.c
cross2.t
cross3.c
crossref.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
data.d
data.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
data.s
data.t
defined.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
defined.s
defined.t
defined2.d
defined2.t
defined3.d
defined3.t
dynamic-sections-1.s
dynamic-sections-2.s
dynamic-sections.d
dynamic-sections.exp
dynamic-sections.t
empty-aligned.d bfd/ 2005-05-17 16:43:02 +00:00
empty-aligned.exp bfd/ 2005-05-17 16:43:02 +00:00
empty-aligned.s bfd/ 2005-05-17 16:43:02 +00:00
empty-aligned.t bfd/ 2005-05-17 16:43:02 +00:00
empty-orphan.d ld/ChangeLog: 2005-03-17 16:20:39 +00:00
empty-orphan.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
empty-orphan.s ld/ChangeLog: 2005-03-17 16:20:39 +00:00
empty-orphan.t ld/ChangeLog: 2005-03-17 16:20:39 +00:00
map-address.d
map-address.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
map-address.t
memory.t Add ORIGIN and LENGTH linker script operators. 2004-11-19 09:31:55 +00:00
overlay-size-map.d
overlay-size.d ld/ 2004-10-14 12:54:47 +00:00
overlay-size.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
overlay-size.s
overlay-size.t
phdrs.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
phdrs.s
phdrs.t
phdrs2.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
phdrs2.s
phdrs2.t
provide-1.d
provide-1.s
provide-1.t
provide-2.d * ld-crx/reloc-num8.d: Adjust for changed orphan placement. 2004-10-15 00:27:12 +00:00
provide-2.s
provide-2.t * ld-crx/reloc-num8.d: Adjust for changed orphan placement. 2004-10-15 00:27:12 +00:00
provide-3.d
provide-3.s
provide-3.t
provide.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
script.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
script.s
script.t
scriptm.t
size-1.d
size-1.s
size-1.t
size-2.d
size-2.s
size-2.t
size.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
sizeof.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
sizeof.s
sizeof.t
sort.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
sort_b_a.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a.s ld/ 2004-10-04 16:45:51 +00:00
sort_b_a.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_a.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_a_n.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_n.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n.s ld/ 2004-10-04 16:45:51 +00:00
sort_b_n.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_a.t ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n-3.d ld/ 2004-10-04 16:45:51 +00:00
sort_b_n_n.t ld/ 2004-10-04 16:45:51 +00:00
sort_n_a-a.s ld/ 2004-10-04 16:45:51 +00:00
sort_n_a-b.s ld/ 2004-10-04 16:45:51 +00:00
sort_no-1.d ld/ 2004-10-04 16:45:51 +00:00
sort_no-2.d ld/ 2004-10-04 16:45:51 +00:00
sort_no.t ld/ 2004-10-04 16:45:51 +00:00
weak.exp Update FSF addresses 2005-05-12 07:32:09 +00:00
weak.t
weak1.s gas/testsuite/ 2005-03-22 14:20:38 +00:00
weak2.s gas/testsuite/ 2005-03-22 14:20:38 +00:00