binutils-gdb/gold/testsuite
Cary Coutant c1027032c2 2012-03-21 Cary Coutant <ccoutant@google.com>
* Makefile.am: Add gdb-index.cc, gdb-index.h.
	* Makefile.in: Regenerate.
	* dwarf_reader.cc (Sized_elf_reloc_mapper::do_initialize): New function.
	(Sized_elf_reloc_mapper::symbol_section): New function.
	(Sized_elf_reloc_mapper::do_get_reloc_target): New function.
	(make_elf_reloc_mapper): New function.
	(Dwarf_abbrev_table::clear_abbrev_codes): New function.
	(Dwarf_abbrev_table::do_read_abbrevs): New function.
	(Dwarf_abbrev_table::do_get_abbrev): New function.
	(Dwarf_ranges_table::read_ranges_table): New function.
	(Dwarf_ranges_table::read_range_list): New function.
	(Dwarf_pubnames_table::read_section): New function.
	(Dwarf_pubnames_table::read_header): New function.
	(Dwarf_pubnames_table::next_name): New function.
	(Dwarf_die::Dwarf_die): New function.
	(Dwarf_die::read_attributes): New function.
	(Dwarf_die::skip_attributes): New function.
	(Dwarf_die::set_name): New function.
	(Dwarf_die::set_linkage_name): New function.
	(Dwarf_die::attribute): New function.
	(Dwarf_die::string_attribute): New function.
	(Dwarf_die::int_attribute): New function.
	(Dwarf_die::uint_attribute): New function.
	(Dwarf_die::ref_attribute): New function.
	(Dwarf_die::child_offset): New function.
	(Dwarf_die::sibling_offset): New function.
	(Dwarf_info_reader::check_buffer): New function.
	(Dwarf_info_reader::parse): New function.
	(Dwarf_info_reader::do_parse): New function.
	(Dwarf_info_reader::do_read_string_table): New function.
	(Dwarf_info_reader::lookup_reloc): New function.
	(Dwarf_info_reader::get_string): New function.
	(Dwarf_info_reader::visit_compilation_unit): New function.
	(Dwarf_info_reader::visit_type_unit): New function.
	(Sized_dwarf_line_info::Sized_dwarf_line_info): Use
	Sized_elf_reloc_mapper.
	(Sized_dwarf_line_info::symbol_section): Remove function.
	(Sized_dwarf_line_info::read_relocs): Use Sized_elf_reloc_mapper.
	(Sized_dwarf_line_info::read_line_mappings): Remove object
	parameter, adjust callers.
	(Sized_dwarf_line_info::format_file_lineno): Fix type of cast.
	* dwarf_reader.h: Include <sys/types.h>.
	(class Track_relocs): Remove forward declaration.
	(class Elf_reloc_mapper): New class.
	(class Sized_elf_reloc_mapper): New class.
	(class Dwarf_abbrev_table): New class.
	(class Dwarf_range_list): New class.
	(class Dwarf_ranges_table): New class.
	(class Dwarf_pubnames_table): New class.
	(class Dwarf_die): New class.
	(class Dwarf_info_reader): New class.
	(Sized_dwarf_line_info::read_line_mappings): Remove object parameter.
	(Sized_dwarf_line_info::symbol_section): Remove member function.
	* dynobj.h (Sized_dynobj::do_section_contents): Refactor code from
	base class.
	* gdb-index.cc: New source file.
	* gdb-index.h: New source file.
	* incremental.cc (Sized_relobj_incr::do_layout): Track .debug_info
	and .debug_types sections, call Layout::add_to_gdb_index.
	(Sized_relobj_incr::do_section_name): Implement.
	(Sized_relobj_incr::do_section_contents): Adjust parameter list and
	return type; Implement.
	(Sized_incr_dynobj::do_section_contents): Adjust parameter list and
	return type.
	* incremental.h (Sized_relobj_incr::do_section_contents): Adjust
	parameter list and return type.
	(Sized_incr_dynobj::do_section_contents): Likewise.
	* layout.cc: Include gdb-index.h.
	(Layout::Layout): Initialize gdb_index_data_.
	(Layout::init_fixed_output_section): Check for .gdb_index section.
	(Layout::add_to_gdb_index): New function. Instantiate.
	* layout.h: Add forward declaration for class Gdb_index.
	(Layout::add_to_gdb_index): New member function.
	(Layout::gdb_index_data_): New data member.
	* main.cc: Include gdb-index.h.
	(main): Print statistics for gdb index.
	* object.cc (Object::section_contents): Move code into
	do_section_contents.
	(need_decompressed_section): Check for sections needed when building
	gdb index.
	(build_compressed_section_map): Likewise.
	(Sized_relobj_file::do_read_symbols): Need local symbols when building
	gdb index.
	(Sized_relobj_file::do_layout): Track .debug_info and .debug_types
	sections; call Layout::add_to_gdb_index.
	(Sized_relobj_file::do_decompressed_section_contents): Call
	do_section_contents directly.
	* object.h (Object::do_section_contents): Adjust parameter list and
	return type.
	(Object::do_decompressed_section_contents): Call do_section_contents
	directly.
	(Sized_relobj_file::do_section_contents): Adjust parameter list and
	return type.
	* options.h (class General_options): Add --gdb-index option.
	* plugin.cc (Sized_pluginobj::do_section_contents): Adjust parameter
	list and return type.
	* plugin.h (Sized_pluginobj::do_section_contents): Likewise.
	* reloc.h (Track_relocs::checkpoint): New function.
	(Track_relocs::reset): New function.

	* testsuite/Makefile.am (gdb_index_test_1.sh, gdb_index_test_2.sh):
	New test cases.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/gdb_index_test.cc: New test source file.
	* testsuite/gdb_index_test_1.sh: New test source file.
	* testsuite/gdb_index_test_2.sh: New test source file.
2012-03-21 19:02:22 +00:00
..
arm_abs_global.s
arm_abs_global.sh
arm_abs_lib.s
arm_attr_merge_6a.s
arm_attr_merge_6b.s
arm_attr_merge_7a.s
arm_attr_merge_7b.s
arm_attr_merge.sh
arm_bl_in_range.s
arm_bl_out_of_range.s
arm_branch_in_range.sh 2011-06-27 Doug Kwan <dougkwan@google.com> 2011-06-27 17:53:32 +00:00
arm_branch_out_of_range.sh
arm_branch_range.t
arm_cortex_a8_b_cond.s
arm_cortex_a8_b_local.s
arm_cortex_a8_b.s
arm_cortex_a8_bl.s
arm_cortex_a8_blx.s
arm_cortex_a8_local_reloc.s
arm_cortex_a8_local.s
arm_cortex_a8.sh
arm_exidx_test.s 2012-03-19 Doug Kwan <dougkwan@google.com> 2012-03-19 23:54:07 +00:00
arm_exidx_test.sh 2012-03-19 Doug Kwan <dougkwan@google.com> 2012-03-19 23:54:07 +00:00
arm_farcall_arm_arm.s * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_arm_arm.sh * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_arm_thumb.s * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_arm_thumb.sh * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_thumb_arm.s * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_thumb_arm.sh * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_thumb_thumb.s * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_farcall_thumb_thumb.sh * arm.cc (Target_arm::Target_arm): Remove initialisation of 2011-11-02 19:11:48 +00:00
arm_fix_1176.s * arm.cc (Target_arm::may_use_v5t_interworking): Check whether 2011-11-03 03:38:34 +00:00
arm_fix_1176.sh * arm.cc (Target_arm::may_use_v5t_interworking): Check whether 2011-11-03 03:38:34 +00:00
arm_fix_v4bx.s
arm_fix_v4bx.sh
arm_thm_jump8.s 2011-06-27 Doug Kwan <dougkwan@google.com> 2011-06-27 17:53:32 +00:00
arm_thm_jump8.t 2011-06-27 Doug Kwan <dougkwan@google.com> 2011-06-27 17:53:32 +00:00
arm_thm_jump11.s 2011-06-27 Doug Kwan <dougkwan@google.com> 2011-06-27 17:53:32 +00:00
arm_thm_jump11.t 2011-06-27 Doug Kwan <dougkwan@google.com> 2011-06-27 17:53:32 +00:00
arm_unaligned_reloc.s 2011-07-05 Doug Kwan <dougkwan@google.com> 2011-07-06 17:58:42 +00:00
arm_unaligned_reloc.sh 2011-11-09 Doug Kwan <dougkwan@google.com> 2011-11-10 00:41:53 +00:00
basic_test.cc
binary_test.cc
binary_unittest.cc * incremental-dump.cc (dump_incremental_inputs): Print dynamic reloc 2011-05-24 21:41:10 +00:00
binary.in
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_1.c
common_test_2.c
common_test_3.c
constructor_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
copy_test.cc
debug_msg.cc * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines, 2011-03-10 01:31:33 +00:00
debug_msg.sh * testsuite/Makefile.am: Add in-tree assembler to gcctestdir. 2011-06-24 18:08:50 +00:00
discard_locals_relocatable_test.c
discard_locals_test.c
discard_locals_test.sh
dyn_weak_ref_1.c
dyn_weak_ref_2.c
dyn_weak_ref.sh
dynamic_list.sh
dynamic_list.t
exception_test_1.cc
exception_test_2.cc
exception_test_main.cc
exception_test.h
exclude_libs_test_1.c
exclude_libs_test_2.c
exclude_libs_test_3.c
exclude_libs_test.c
exclude_libs_test.sh
final_layout.cc
final_layout.sh Fix copyright. 2011-03-22 00:18:26 +00:00
gc_comdat_test_1.cc
gc_comdat_test_2.cc
gc_comdat_test.sh
gc_orphan_section_test.cc
gc_orphan_section_test.sh
gc_tls_test.cc
gc_tls_test.sh
gdb_index_test_1.sh 2012-03-21 Cary Coutant <ccoutant@google.com> 2012-03-21 19:02:22 +00:00
gdb_index_test_2.sh 2012-03-21 Cary Coutant <ccoutant@google.com> 2012-03-21 19:02:22 +00:00
gdb_index_test.cc 2012-03-21 Cary Coutant <ccoutant@google.com> 2012-03-21 19:02:22 +00:00
hidden_test_1.c
hidden_test_main.c
hidden_test.sh
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_1.cc
icf_sht_rel_addend_test_2.cc
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_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
ifuncvar1.c PR gold/12372 2011-07-08 22:48:08 +00:00
ifuncvar2.c PR gold/12372 2011-07-08 22:48:08 +00:00
ifuncvar3.c PR gold/12372 2011-07-08 22:48:08 +00:00
incr_comdat_test_1.cc * incremental.cc (Sized_relobj_incr::do_layout): Call 2011-09-14 01:10:43 +00:00
incr_comdat_test_2_v1.cc * incremental.cc (Sized_relobj_incr::do_layout): Call 2011-09-14 01:10:43 +00:00
incr_comdat_test_2_v2.cc * incremental.cc (Sized_relobj_incr::do_layout): Call 2011-09-14 01:10:43 +00:00
incr_comdat_test_2_v3.cc * incremental.cc (Sized_relobj_incr::do_layout): Call 2011-09-14 01:10:43 +00:00
incremental_test_1.c
incremental_test_2.c
incremental_test.sh
initpri1.c
initpri2.c PR gold/12910 2011-06-23 00:46:14 +00:00
initpri3.c * layout.cc: Include "object.h". 2011-06-25 00:40:57 +00:00
justsyms_1.cc
justsyms_2.cc
justsyms_exec.c Add missing files. 2011-08-02 00:37:41 +00:00
justsyms_lib.c Add missing files. 2011-08-02 00:37:41 +00:00
justsyms.t
large.c
leb128_unittest.cc * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline 2012-01-25 07:34:55 +00:00
Makefile.am 2012-03-21 Cary Coutant <ccoutant@google.com> 2012-03-21 19:02:22 +00:00
Makefile.in 2012-03-21 Cary Coutant <ccoutant@google.com> 2012-03-21 19:02:22 +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 * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines, 2011-03-10 01:31:33 +00:00
odr_header2.h * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines, 2011-03-10 01:31:33 +00:00
odr_violation1.cc * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines, 2011-03-10 01:31:33 +00:00
odr_violation2.cc * testsuite/odr_violation2.cc (Ordering::operator()): Make 2011-07-09 05:09:52 +00:00
plugin_common_test_1.c
plugin_common_test_2.c
plugin_final_layout.cc 2011-09-29 Sriraman Tallam <tmsriram@google.com> 2011-09-29 23:45:57 +00:00
plugin_final_layout.sh 2011-09-29 Sriraman Tallam <tmsriram@google.com> 2011-09-29 23:45:57 +00:00
plugin_section_order.c 2011-09-29 Sriraman Tallam <tmsriram@google.com> 2011-09-29 23:45:57 +00:00
plugin_test_1.sh
plugin_test_2.sh PR gold/13245 2011-10-18 00:25:53 +00:00
plugin_test_3.sh include/ChangeLog 2011-09-26 23:00:17 +00:00
plugin_test_4.sh
plugin_test_6.sh
plugin_test_7_1.c
plugin_test_7_2.c
plugin_test_7.sh
plugin_test.c include/ChangeLog 2011-09-26 23:00:17 +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
pr12826.sh 2011-05-31 Doug Kwan <dougkwan@google.com> 2011-06-01 19:59:42 +00:00
protected_1.cc PR gold/12980 2011-07-12 22:29:09 +00:00
protected_2.cc
protected_3.cc
protected_4.cc
protected_main_1.cc PR gold/12980 2011-07-12 22:29:09 +00:00
protected_main_2.cc
protected_main_3.cc
relro_script_test.t
relro_test_main.cc
relro_test.cc
relro_test.sh * testsuite/relro_test.sh: Fail if dc is not present. 2011-03-22 00:19:14 +00:00
retain_symbols_file_test.sh
script_test_1.cc
script_test_1.t
script_test_2.cc
script_test_2.t PR gold/13023 2011-10-31 22:51:03 +00:00
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 * testsuite/script_test_9.t: Add TLS segment. 2011-03-02 21:59:36 +00:00
script_test_10.s
script_test_10.sh
script_test_10.t
searched_file_test_lib.cc
searched_file_test.cc
split_i386_1.s
split_i386_2.s
split_i386_3.s
split_i386_4.s
split_i386_n.s
split_i386.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
split_x86_64.sh
start_lib_test_1.c
start_lib_test_2.c
start_lib_test_3.c
start_lib_test_main.c
strong_ref_weak_def_1.c
strong_ref_weak_def_2.c
strong_ref_weak_def.sh
test.cc
test.h
testfile.cc PR gold/12934 2011-06-28 23:12:31 +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_local.s
thumb_bl_out_of_range.s
thumb_blx_in_range.s
thumb_blx_out_of_range.s
thumb_branch_range.t
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
tls_test.cc
tls_test.h
two_file_shared.sh
two_file_test_1_v1.cc * incremental.cc (Incremental_inputs::report_command_line): Ignore 2011-07-06 21:19:32 +00:00
two_file_test_1.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_1b.cc
two_file_test_2_v1.cc PR gold/12804 2011-06-09 00:51:39 +00:00
two_file_test_2.cc
two_file_test_main.cc
two_file_test.h
undef_symbol_main.cc
undef_symbol.cc
undef_symbol.sh
ver_matching_def.cc
ver_matching_test.sh
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_2.cc
ver_test_main.cc
ver_test.h
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_5.cc PR gold/12525 2011-07-02 05:30:00 +00:00
weak_alias_test_main.cc PR gold/12525 2011-07-02 05:30:00 +00:00
weak_alias_test.script PR gold/12525 2011-07-02 05:30:00 +00:00
weak_plt_main.cc
weak_plt_shared.cc
weak_plt.sh
weak_test.cc
weak_undef_file1.cc
weak_undef_file2.cc
weak_undef_test.cc
weak_undef.h