diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-20 06:02:06 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-20 06:02:06 +0000 |
commit | cba134d613067d071aa58118435ed0b4ce9caffc (patch) | |
tree | f49191910758e271598f7c44a6852c290fd77ccb /gold | |
parent | a93d6d0708cec0f69b8aaa28c847dd43195fe106 (diff) | |
download | gdb-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.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/object.cc | 3 |
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; |