From 1206d0d51475805105f990eaa2a02e2a7699aa80 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Wed, 14 Sep 2011 01:10:43 +0000 Subject: * incremental.cc (Sized_relobj_incr::do_layout): Call report_comdat_group for kept comdat sections. * testsuite/Makefile.am (incremental_comdat_test_1): New test. * testsuite/Makefile.in: Regenerate. * testsuite/incr_comdat_test_1.cc: New source file. * testsuite/incr_comdat_test_2_v1.cc: New source file. * testsuite/incr_comdat_test_2_v2.cc: New source file. * testsuite/incr_comdat_test_2_v3.cc: New source file. --- gold/incremental.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gold/incremental.cc') diff --git a/gold/incremental.cc b/gold/incremental.cc index e3b48a4..4c4483d 100644 --- a/gold/incremental.cc +++ b/gold/incremental.cc @@ -2008,7 +2008,9 @@ Sized_relobj_incr::do_layout( this->error(_("COMDAT group has no signature")); bool keep = layout->find_or_add_kept_section(signature, this, i, true, true, NULL); - if (!keep) + if (keep) + incremental_inputs->report_comdat_group(this, signature); + else this->error(_("COMDAT group %s included twice in incremental link"), signature); } -- cgit v1.1