old-cross-binutils/gold/testsuite
Ian Lance Taylor 5393d7415a PR gold/12910
* options.h (class General_options): Add --ctors-in-init-array.
	* layout.cc (Layout::get_output_section): Treat SHT_INIT_ARRAY and
	friends as SHT_PROGBITS for merging sections.
	(Layout::layout): Remove special handling of .init_array and
	friends.  Don't sort if doing relocatable link.  Sort for .ctors
	and .dtors if ctors_in_init_array.
	(Layout::make_output_section): Force correct section types for
	.init_array and friends.  Don't sort if doing relocatable link,
	Don't sort .ctors and .dtors if ctors_in_init_array.
	(Layout::section_name_mapping): Remove .ctors. and .dtorso.
	(Layout::output_section_name): Add relobj parameter.  Change all
	callers.  Handle .ctors. and .dtors. in code rather than table.
	Handle .ctors and .dtors if ctors_in_init_array.
	(Layout::match_file_name): New function, moved from output.cc.
	* layout.h (class Layout): Update declarations.
	* output.cc: Include "layout.h".
	(Input_section_sort_entry::get_priority): New function.
	(Input_section_sort_entry::match_file_name): Just call
	Layout::match_file_name.
	(Output_section::Input_section_sort_init_fini_compare::operator()):
	Handle .ctors and .dtors.  Sort by explicit priority rather than
	by name.
	* configure.ac: Remove CONSTRUCTOR_PRIORITY test and conditional.
	* testsuite/initpri2.c: New test.
	* testsuite/Makefile.am: Don't test CONSTRUCTOR_PRIORITY.
	(check_PROGRAMS): Add initpri2.
	(initpri2_SOURCES, initpri2_DEPENDENCIES): New variables.
	(initpri2_LDFLAGS, initpri2_LDADD): New variables.
	* configure, testsuite/Makefile.in: Rebuild.
2011-06-23 00:46:14 +00:00
..
arm_abs_global.s
arm_abs_global.sh
arm_abs_lib.s
arm_attr_merge.sh
arm_attr_merge_6a.s
arm_attr_merge_6b.s
arm_attr_merge_7a.s
arm_attr_merge_7b.s
arm_bl_in_range.s
arm_bl_out_of_range.s
arm_branch_in_range.sh
arm_branch_out_of_range.sh
arm_branch_range.t
arm_cortex_a8.sh
arm_cortex_a8_b.s
arm_cortex_a8_b_cond.s
arm_cortex_a8_b_local.s
arm_cortex_a8_bl.s
arm_cortex_a8_blx.s
arm_cortex_a8_local.s
arm_cortex_a8_local_reloc.s
arm_exidx_test.s 2011-04-22 Doug Kwan <dougkwan@google.com> 2011-04-22 21:50:03 +00:00
arm_exidx_test.sh 2011-04-22 Doug Kwan <dougkwan@google.com> 2011-04-22 21:50:03 +00:00
arm_fix_v4bx.s
arm_fix_v4bx.sh
basic_test.cc
binary.in
binary_test.cc
binary_unittest.cc * incremental-dump.cc (dump_incremental_inputs): Print dynamic reloc 2011-05-24 21:41:10 +00:00
common_test_1.c
common_test_1_v1.c * testsuite/Makefile.am: Add incremental_copy_test, 2011-06-08 04:24:59 +00:00
common_test_1_v2.c * testsuite/Makefile.am: Add incremental_copy_test, 2011-06-08 04:24:59 +00:00
common_test_2.c
common_test_3.c
constructor_test.cc
copy_test.cc
copy_test_1.cc
copy_test_2.cc
copy_test_v1.cc * testsuite/Makefile.am: Add incremental_copy_test, 2011-06-08 04:24:59 +00:00
debug_msg.cc
debug_msg.sh * object.cc (Relocate_info::location): Simplify location string. 2011-04-18 05:39:43 +00:00
discard_locals_relocatable_test.c
discard_locals_test.c
discard_locals_test.sh
dyn_weak_ref.sh
dyn_weak_ref_1.c
dyn_weak_ref_2.c
dynamic_list.sh
dynamic_list.t
exception_test.h
exception_test_1.cc
exception_test_2.cc
exception_test_main.cc
exclude_libs_test.c
exclude_libs_test.sh
exclude_libs_test_1.c
exclude_libs_test_2.c
exclude_libs_test_3.c
final_layout.cc
final_layout.sh Fix copyright. 2011-03-22 00:18:26 +00:00
gc_comdat_test.sh
gc_comdat_test_1.cc
gc_comdat_test_2.cc
gc_orphan_section_test.cc
gc_orphan_section_test.sh
gc_tls_test.cc
gc_tls_test.sh
hidden_test.sh
hidden_test_1.c
hidden_test_main.c
icf_keep_unique_test.cc
icf_keep_unique_test.sh
icf_preemptible_functions_test.cc
icf_preemptible_functions_test.sh * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start. 2011-03-21 20:55:33 +00:00
icf_safe_so_test.cc
icf_safe_so_test.sh * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start. 2011-03-21 20:55:33 +00:00
icf_safe_test.cc
icf_safe_test.sh * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start. 2011-03-21 20:55:33 +00:00
icf_sht_rel_addend_test.sh * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start. 2011-03-21 20:55:33 +00:00
icf_sht_rel_addend_test_1.cc
icf_sht_rel_addend_test_2.cc
icf_string_merge_test.cc
icf_string_merge_test.sh * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start. 2011-03-21 20:55:33 +00:00
icf_test.cc
icf_test.sh
icf_virtual_function_folding_test.cc
ifunc-sel.h
ifuncdep2.c
ifuncmain1.c
ifuncmain1vis.c
ifuncmain2.c
ifuncmain3.c
ifuncmain4.c
ifuncmain5.c
ifuncmain6pie.c
ifuncmain7.c
ifuncmod1.c
ifuncmod3.c
ifuncmod5.c
ifuncmod6.c
incremental_test.sh
incremental_test_1.c
incremental_test_2.c
initpri1.c
initpri2.c PR gold/12910 2011-06-23 00:46:14 +00:00
justsyms.t
justsyms_1.cc
justsyms_2.cc
large.c
Makefile.am PR gold/12910 2011-06-23 00:46:14 +00:00
Makefile.in PR gold/12910 2011-06-23 00:46:14 +00:00
many_sections_test.cc
memory_test.s
memory_test.sh
memory_test.t
no_version_test.c
no_version_test.sh
object_unittest.cc * gold.cc (queue_middle_tasks): Process existing GOT/PLT entries. 2011-05-23 23:27:11 +00:00
odr_header1.h
odr_header2.h
odr_violation1.cc
odr_violation2.cc PR gold/12572 2011-03-11 21:42:12 +00:00
plugin_common_test_1.c
plugin_common_test_2.c
plugin_test.c
plugin_test_1.sh
plugin_test_2.sh
plugin_test_3.sh
plugin_test_4.sh
plugin_test_6.sh
plugin_test_7.sh
plugin_test_7_1.c
plugin_test_7_2.c
pr12826.sh 2011-05-31 Doug Kwan <dougkwan@google.com> 2011-06-01 19:59:42 +00:00
pr12826_1.s 2011-05-31 Doug Kwan <dougkwan@google.com> 2011-06-01 19:59:42 +00:00
pr12826_2.s 2011-05-31 Doug Kwan <dougkwan@google.com> 2011-06-01 19:59:42 +00:00
protected_1.cc
protected_2.cc
protected_3.cc
protected_4.cc
protected_main_1.cc
protected_main_2.cc
protected_main_3.cc
relro_script_test.t
relro_test.cc
relro_test.sh * testsuite/relro_test.sh: Fail if dc is not present. 2011-03-22 00:19:14 +00:00
relro_test_main.cc
retain_symbols_file_test.sh
script_test_1.cc
script_test_1.t
script_test_2.cc
script_test_2.t
script_test_2a.cc
script_test_2b.cc
script_test_3.sh
script_test_3.t
script_test_4.sh
script_test_4.t
script_test_5.cc
script_test_5.sh
script_test_5.t
script_test_6.sh
script_test_6.t
script_test_7.sh
script_test_7.t
script_test_8.sh
script_test_9.cc
script_test_9.sh
script_test_9.t
script_test_10.s
script_test_10.sh
script_test_10.t
searched_file_test.cc
searched_file_test_lib.cc
split_i386.sh
split_i386_1.s
split_i386_2.s
split_i386_3.s
split_i386_4.s
split_i386_n.s
split_x86_64.sh
split_x86_64_1.s
split_x86_64_2.s
split_x86_64_3.s
split_x86_64_4.s
split_x86_64_n.s
start_lib_test_1.c
start_lib_test_2.c
start_lib_test_3.c
start_lib_test_main.c
strong_ref_weak_def.sh
strong_ref_weak_def_1.c
strong_ref_weak_def_2.c
test.cc
test.h
testfile.cc * incremental-dump.cc (dump_incremental_inputs): Print dynamic reloc 2011-05-24 21:41:10 +00:00
testfile.h
testmain.cc
thin_archive_main.cc
thin_archive_test_1.cc
thin_archive_test_2.cc
thin_archive_test_3.cc
thin_archive_test_4.cc
thumb2_branch_range.t
thumb_bl_in_range.s
thumb_bl_out_of_range.s
thumb_bl_out_of_range_local.s
thumb_blx_in_range.s
thumb_blx_out_of_range.s
thumb_branch_range.t
tls_test.cc
tls_test.h
tls_test_c.c
tls_test_file2.cc
tls_test_main.cc * testsuite/tls_test_main.cc: Use semaphores instead of mutexes. 2011-05-16 23:29:30 +00:00
two_file_shared.sh
two_file_test.h
two_file_test_1.cc
two_file_test_1_v1.cc * testsuite/Makefile.am: Add incremental_test_2, incremental_test_3, 2011-05-24 22:01:46 +00:00
two_file_test_1b.cc
two_file_test_1b_v1.cc * testsuite/Makefile.am: Add incremental_test_2, incremental_test_3, 2011-05-24 22:01:46 +00:00
two_file_test_2.cc
two_file_test_2_v1.cc PR gold/12804 2011-06-09 00:51:39 +00:00
two_file_test_main.cc
undef_symbol.cc
undef_symbol.sh
undef_symbol_main.cc
ver_matching_def.cc
ver_matching_test.sh
ver_test.h
ver_test_1.cc
ver_test_1.sh
ver_test_2.cc
ver_test_2.script
ver_test_2.sh
ver_test_3.cc
ver_test_4.cc
ver_test_4.script
ver_test_4.sh
ver_test_5.cc
ver_test_5.script
ver_test_5.sh
ver_test_6.c
ver_test_7.cc
ver_test_7.sh
ver_test_8.script
ver_test_9.cc
ver_test_10.script
ver_test_10.sh
ver_test_main.cc
ver_test_main_2.cc
version_script.map
weak_alias_test_1.cc
weak_alias_test_2.cc
weak_alias_test_3.cc
weak_alias_test_4.cc
weak_alias_test_main.cc
weak_plt.sh
weak_plt_main.cc
weak_plt_shared.cc
weak_test.cc
weak_undef.h
weak_undef_file1.cc
weak_undef_file2.cc
weak_undef_test.cc