From Cary Coutant: only check for a linkonce section if the SHF_GROUP
flag is clear.
This commit is contained in:
parent
a93d6d0708
commit
cba134d613
1 changed files with 2 additions and 1 deletions
|
@ -439,7 +439,8 @@ Sized_relobj<size, big_endian>::do_layout(const General_options& options,
|
||||||
if (!this->include_section_group(layout, i, shdr, &omit))
|
if (!this->include_section_group(layout, i, shdr, &omit))
|
||||||
discard = true;
|
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))
|
if (!this->include_linkonce_section(layout, name, shdr))
|
||||||
discard = true;
|
discard = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue