binutils-gdb/gold/testsuite
Cary Coutant ec673e648c Add .gdb_index version 7 support.
This patch adds support for .gdb_index version 7, which adds several
flag bits to the symbol index.  It also fixes a problem where it did
not handle compressed debug sections correctly.

Tested with a google/gcc-4_8 branch compiler, which supports
the -ggnu-pubnames option to generate .debug_gnu_pubnames/pubtypes
tables. (We will submit that patch to GCC when stage 1 reopens.)

2014-01-28  Cary Coutant  <ccoutant@google.com>

	* gold/dwarf_reader.cc: include <utility> (for make_pair).
	(Dwarf_abbrev_table::do_read_abbrevs): Check for compressed
	debug sections.
	(Dwarf_ranges_table::read_ranges_table): Likewise.
	(Dwarf_pubnames_table::read_section): Check for GNU-style
	sections, and for compressed debug sections.
	(Dwarf_pubnames_table::read_header): Compute end address of table.
	(Dwarf_pubnames_table::next_name): Return flag_byte.  Check
	for end of list by offset, not by offset == 0.
	(Dwarf_info_reader::do_read_string_table): Check for compressed
	debug sections.
	* gold/dwarf_reader.h (Dwarf_pubnames_table::Dwarf_pubnames_table):
	Initialize new data members.
	(Dwarf_pubnames_table::next_name): return flag_byte.
	(Dwarf_pubnames_table::end_of_table_): New data member.
	(Dwarf_pubnames_table::is_gnu_style_): New data member.
	* gold/gdb-index.cc (gdb_index_version): Update to version 7.
	(Gdb_index_info_reader::read_pubtable): Read flag_byte.
	(Gdb_index_info_reader::read_pubnames_and_pubtypes): Don't
	read skeleton type unit DIEs.
	(Gdb_index::add_symbol): Add flag_byte; adjust all callers.
	(Gdb_index::do_write): Write flag_byte.
	* gold/gdb-index.h (Gdb_index::add_symbol): Add flags parameter.
	(Gdb_index::Cu_vector): Store flags along with cu indexes.
	* gold/testsuite/gdb_index_test_3.sh: Allow versions 4-7.
	* gold/testsuite/gdb_index_test_comm.sh: Likewise.
2014-01-28 15:36:00 -08: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
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
arm_exidx_test.sh
arm_farcall_arm_arm.s
arm_farcall_arm_arm.sh
arm_farcall_arm_thumb.s
arm_farcall_arm_thumb.sh
arm_farcall_thumb_arm.s
arm_farcall_thumb_arm.sh
arm_farcall_thumb_thumb.s
arm_farcall_thumb_thumb.sh
arm_fix_1176.s
arm_fix_1176.sh
arm_fix_v4bx.s
arm_fix_v4bx.sh
arm_thm_jump8.s
arm_thm_jump8.t
arm_thm_jump11.s
arm_thm_jump11.t
arm_unaligned_reloc.s
arm_unaligned_reloc.sh
basic_test.cc
binary_test.cc
binary_unittest.cc gold/ 2012-12-10 17:38:42 +00:00
binary.in
common_test_1_v1.c
common_test_1_v2.c
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
copy_test.cc
debug_msg.cc
debug_msg.sh gold/ 2013-05-21 20:56:13 +00:00
discard_locals_relocatable_test.c * testsuite/discard_locals_relocatable_test.c: Add a powerpc 2013-03-07 05:33:50 +00:00
discard_locals_test.c
discard_locals_test.sh * testsuite/discard_locals_relocatable_test.c: Add a powerpc 2013-03-07 05:33:50 +00:00
dwp_test_1.cc
dwp_test_1.s
dwp_test_1.sh
dwp_test_1b.cc
dwp_test_1b.s
dwp_test_2.cc
dwp_test_2.s
dwp_test_2.sh
dwp_test_main.cc
dwp_test_main.s
dwp_test.h
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
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
gdb_index_test_2.sh
gdb_index_test_3.c
gdb_index_test_3.sh Add .gdb_index version 7 support. 2014-01-28 15:36:00 -08:00
gdb_index_test_4.sh
gdb_index_test_comm.sh Add .gdb_index version 7 support. 2014-01-28 15:36:00 -08:00
gdb_index_test.cc
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
icf_safe_so_test.cc
icf_safe_so_test.sh * powerpc.cc (is_branch_reloc): Forward declare. 2013-03-12 22:46:19 +00:00
icf_safe_test.cc
icf_safe_test.sh * powerpc.cc (is_branch_reloc): Forward declare. 2013-03-12 22:46:19 +00:00
icf_sht_rel_addend_test_1.cc
icf_sht_rel_addend_test_2.cc
icf_sht_rel_addend_test.sh
icf_string_merge_test.cc
icf_string_merge_test.sh
icf_test.cc
icf_test.sh * powerpc.cc (is_branch_reloc): Forward declare. 2013-03-12 22:46:19 +00:00
icf_virtual_function_folding_test.cc
ifunc-sel.h * testsuite/ifunc-sel.h (ifunc_sel, ifunc_one): Mark 2013-03-07 05:31:44 +00:00
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
ifuncvar2.c
ifuncvar3.c
incr_comdat_test_1.cc
incr_comdat_test_2_v1.cc
incr_comdat_test_2_v2.cc
incr_comdat_test_2_v3.cc
incremental_test_1.c
incremental_test_2.c
incremental_test.sh
initpri1.c
initpri2.c
initpri3.c
justsyms_1.cc
justsyms_2.cc
justsyms_exec.c
justsyms_lib.c
justsyms.t
large_symbol_alignment.cc gold/ 2013-06-06 06:06:56 +00:00
large.c
leb128_unittest.cc
Makefile.am Use in-tree assembler for exception_x86_64_bnd_test. 2013-11-22 15:47:18 -08:00
Makefile.in Use in-tree assembler for exception_x86_64_bnd_test. 2013-11-22 15:47:18 -08:00
many_sections_test.cc
memory_test.s
memory_test.sh
memory_test.t
merge_string_literals_1.cc gold/ 2013-10-11 21:56:16 +00:00
merge_string_literals_2.cc gold/ 2013-10-11 21:56:16 +00:00
merge_string_literals.sh 2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com> 2013-04-29 17:15:09 +00:00
missing_key_func.cc gold/ 2013-05-21 21:14:40 +00:00
missing_key_func.sh gold/ 2013-05-21 21:14:40 +00:00
no_version_test.c
no_version_test.sh
object_unittest.cc
odr_header1.h
odr_header2.h
odr_violation1.cc
odr_violation2.cc
plugin_common_test_1.c
plugin_common_test_2.c
plugin_final_layout.cc 2013-01-16 Sriraman Tallam <tmsriram@google.com> 2013-01-17 00:00:48 +00:00
plugin_final_layout.sh
plugin_section_order.c
plugin_test_1.sh
plugin_test_2.sh
plugin_test_3.sh
plugin_test_4.sh
plugin_test_6.sh
plugin_test_7_1.c
plugin_test_7_2.c
plugin_test_7.sh
plugin_test_tls.sh gold/ 2013-06-14 20:07:18 +00:00
plugin_test.c
pr12826_1.s
pr12826_2.s
pr12826.sh
pr14265.c
pr14265.sh
pr14265.t
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_main.cc
relro_test.cc
relro_test.sh
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 * testsuite/script_test_10.sh: Don't test .bss section 2013-03-07 05:30:06 +00:00
script_test_10.t
script_test_11.c gold/ 2013-04-15 16:34:12 +00:00
script_test_11.t gold/ 2013-04-15 16:34:12 +00:00
searched_file_test_lib.cc
searched_file_test.cc
section_sorting_name.cc 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com> 2013-05-30 23:01:11 +00:00
section_sorting_name.sh 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com> 2013-05-30 23:01:11 +00:00
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 gold/ 2013-07-30 21:26:53 +00:00
testfile.h
testmain.cc
text_section_grouping.cc Group text sections with prefixes .text.unlikely,.text.hot and .text.startup 2012-12-19 02:55:15 +00:00
text_section_grouping.sh Default text reordering fix with a flag to turn it off. 2013-01-24 18:49:55 +00:00
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
tls_test.cc
tls_test.h
two_file_shared.sh
two_file_test_1_v1.cc
two_file_test_1.cc
two_file_test_1b_v1.cc
two_file_test_1b.cc
two_file_test_2_tls.cc gold/ 2013-06-14 20:07:18 +00:00
two_file_test_2_v1.cc
two_file_test_2.cc
two_file_test_main.cc
two_file_test_tls.cc gold/ 2013-06-14 20:07:18 +00:00
two_file_test.h
undef_symbol_main.cc
undef_symbol.cc gold/ 2013-10-11 21:59:46 +00:00
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
weak_alias_test_main.cc
weak_alias_test.script
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