summaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-06-09 18:18:43 +0000
committerCary Coutant <ccoutant@google.com>2011-06-09 18:18:43 +0000
commit3f7bcfca83a86fb9b4394333822b3ec35c7d0fd6 (patch)
tree7895b6625c557aff0627a9517bf39a2089f113c3 /gold/object.cc
parentea7242b7fbb150f2807df8885d388d6f22f84d5c (diff)
downloadbinutils-redhat-3f7bcfca83a86fb9b4394333822b3ec35c7d0fd6.tar.gz
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 b14c85db87..b51cbfee5d 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)
{