projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a93d6d0
)
From Cary Coutant: only check for a linkonce section if the SHF_GROUP
author
Ian Lance Taylor
<iant@google.com>
Thu, 20 Sep 2007 06:02:06 +0000
(06:02 +0000)
committer
Ian Lance Taylor
<iant@google.com>
Thu, 20 Sep 2007 06:02:06 +0000
(06:02 +0000)
flag is clear.
gold/object.cc
patch
|
blob
|
history
diff --git
a/gold/object.cc
b/gold/object.cc
index
0fb4526
..
1d20b76
100644
(file)
--- 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;