--set-section-flags patch from dje.
This commit is contained in:
parent
aa396c6858
commit
842eba6688
1 changed files with 2 additions and 3 deletions
|
@ -1029,10 +1029,9 @@ setup_section (ibfd, isection, obfdarg)
|
|||
goto loser;
|
||||
}
|
||||
|
||||
flags = bfd_get_section_flags (ibfd, isection);
|
||||
if (p != NULL && p->set_flags)
|
||||
flags = p->flags;
|
||||
else
|
||||
flags = bfd_get_section_flags (ibfd, isection);
|
||||
flags = p->flags | (flags & SEC_HAS_CONTENTS);
|
||||
if (!bfd_set_section_flags (obfd, osection, flags))
|
||||
{
|
||||
err = "flags";
|
||||
|
|
Loading…
Reference in a new issue