aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-06-09 18:18:44 +0000
committerCary Coutant <ccoutant@google.com>2011-06-09 18:18:44 +0000
commit4fb3a1c35a8a796104f36e61ea465e94f27e2db8 (patch)
tree76dd3926c6356152a00f08087651bca214adfe36 /gold/object.cc
parentfd596c16fb7b06c7cfd77d260c41009195fa8dbf (diff)
downloadgdb-4fb3a1c35a8a796104f36e61ea465e94f27e2db8.zip
gdb-4fb3a1c35a8a796104f36e61ea465e94f27e2db8.tar.gz
gdb-4fb3a1c35a8a796104f36e61ea465e94f27e2db8.tar.bz2
PR gold/12804
* gold/gold.cc (queue_initial_tasks): Warn if --incremental is used with --compress-debug-sections. * gold/object.cc (Sized_relobj_file::do_layout): Report uncompressed size of compressed input sections.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/gold/object.cc b/gold/object.cc
index b14c85d..b51cbfe 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -1299,8 +1299,13 @@ Sized_relobj_file<size, big_endian>::do_layout(Symbol_table* symtab,
&& (shdr.get_sh_type() == elfcpp::SHT_PROGBITS
|| shdr.get_sh_type() == elfcpp::SHT_NOBITS
|| shdr.get_sh_type() == elfcpp::SHT_NOTE))
- incremental_inputs->report_input_section(this, i, name,
- shdr.get_sh_size());
+ {
+ off_t sh_size = shdr.get_sh_size();
+ section_size_type uncompressed_size;
+ if (this->section_is_compressed(i, &uncompressed_size))
+ sh_size = uncompressed_size;
+ incremental_inputs->report_input_section(this, i, name, sh_size);
+ }
if (discard)
{