--set-section-flags patch from dje.

This commit is contained in:
Ian Lance Taylor 1995-02-17 20:42:22 +00:00
parent aa396c6858
commit 842eba6688
1 changed files with 2 additions and 3 deletions

View File

@ -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";