aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-20 06:02:06 +0000
committerIan Lance Taylor <iant@google.com>2007-09-20 06:02:06 +0000
commitcba134d613067d071aa58118435ed0b4ce9caffc (patch)
treef49191910758e271598f7c44a6852c290fd77ccb
parenta93d6d0708cec0f69b8aaa28c847dd43195fe106 (diff)
downloadgdb-cba134d613067d071aa58118435ed0b4ce9caffc.zip
gdb-cba134d613067d071aa58118435ed0b4ce9caffc.tar.gz
gdb-cba134d613067d071aa58118435ed0b4ce9caffc.tar.bz2
From Cary Coutant: only check for a linkonce section if the SHF_GROUP
flag is clear.
-rw-r--r--gold/object.cc3
1 files changed, 2 insertions, 1 deletions
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<size, big_endian>::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;