aboutsummaryrefslogtreecommitdiff
path: root/gold/incremental-dump.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-05-26 18:44:27 +0000
committerCary Coutant <ccoutant@google.com>2011-05-26 18:44:27 +0000
commit89d8a36b24e188ccbb032c55e302425b94516e74 (patch)
treed2f12e016f2502c4a2a088ab09891d197565de9b /gold/incremental-dump.cc
parentd8b344530cba74a754ec101ccdd8869b3a48ec90 (diff)
downloadgdb-89d8a36b24e188ccbb032c55e302425b94516e74.zip
gdb-89d8a36b24e188ccbb032c55e302425b94516e74.tar.gz
gdb-89d8a36b24e188ccbb032c55e302425b94516e74.tar.bz2
* incremental-dump.cc (dump_incremental_inputs): Print COMDAT groups.
* incremental.cc (Incremental_inputs::report_input_section): Fix comment, indentation. (Incremental_inputs::report_comdat_group): New function. (Output_section_incremental_inputs::set_final_data_size): Adjust size of data for incremental input file entry. (Output_section_incremental_inputs::write_info_blocks): Write COMDAT group count, COMDAT group signatures. (Sized_incr_relobj::do_layout): Record kept COMDAT group info from an unchanged input file. * incremental.h (Incremental_object_entry::Incremental_object_entry): Initialize new data member. (Incremental_object_entry::add_comdat_group): New function. (Incremental_object_entry::get_comdat_group_count): New function. (Incremental_object_entry::get_comdat_signature_key): New function. (Incremental_object_entry::groups_): New data member. (Incremental_inputs::report_comdat_group): New function. (Incremental_input_entry_reader::get_symbol_offset): Adjust size of data for incremental input file entry. (Incremental_input_entry_reader::get_comdat_group_count): New function. (Incremental_input_entry_reader::get_input_section): Adjust size of data for incremental input file entry. (Incremental_input_entry_reader::get_global_symbol_reader): Likewise. (Incremental_input_entry_reader::get_comdat_group_signature): New function. * object.cc (Sized_relobj::include_section_group): Report kept COMDAT groups for incremental links.
Diffstat (limited to 'gold/incremental-dump.cc')
-rw-r--r--gold/incremental-dump.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/incremental-dump.cc b/gold/incremental-dump.cc
index a727eb5..fff4637 100644
--- a/gold/incremental-dump.cc
+++ b/gold/incremental-dump.cc
@@ -153,6 +153,8 @@ dump_incremental_inputs(const char* argv0, const char* filename,
input_file.get_first_dyn_reloc());
printf(" Dynamic reloc count: %d\n",
input_file.get_dyn_reloc_count());
+ printf(" COMDAT group count: %d\n",
+ input_file.get_comdat_group_count());
break;
case INCREMENTAL_INPUT_ARCHIVE:
printf("Archive\n");
@@ -212,6 +214,11 @@ dump_incremental_inputs(const char* argv0, const char* filename,
static_cast<long long>(info.sh_size),
info.name);
}
+
+ unsigned int ncomdat = input_file.get_comdat_group_count();
+ for (unsigned int i = 0; i < ncomdat; ++i)
+ printf(" Comdat group: %s\n",
+ input_file.get_comdat_group_signature(i));
}
// Get a view of the .symtab section.