From: Ian Lance Taylor Date: Thu, 20 Sep 2007 06:02:06 +0000 (+0000) Subject: From Cary Coutant: only check for a linkonce section if the SHF_GROUP X-Git-Tag: sid-snapshot-20071001~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba134d613067d071aa58118435ed0b4ce9caffc;p=external%2Fbinutils.git From Cary Coutant: only check for a linkonce section if the SHF_GROUP flag is clear. --- diff --git a/gold/object.cc b/gold/object.cc index 0fb4526..1d20b76 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -439,7 +439,8 @@ Sized_relobj::do_layout(const General_options& options, if (!this->include_section_group(layout, i, shdr, &omit)) discard = true; } - else if (Layout::is_linkonce(name)) + else if ((shdr.get_sh_flags() & elfcpp::SHF_GROUP) == 0 + && Layout::is_linkonce(name)) { if (!this->include_linkonce_section(layout, name, shdr)) discard = true;