+2011-06-09 Cary Coutant <ccoutant@google.com>
+
+ 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.
+
2011-06-08 Cary Coutant <ccoutant@google.com>
PR gold/12804
gold_error(_("incremental linking is incompatible with --icf"));
if (options.has_plugins())
gold_error(_("incremental linking is incompatible with --plugin"));
+ if (strcmp(options.compress_debug_sections(), "none") != 0)
+ gold_error(_("incremental linking is incompatible with "
+ "--compress-debug-sections"));
if (parameters->incremental_update())
{
&& (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)
{