mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 06:43:58 +08:00
--set-section-flags patch from dje.
This commit is contained in:
parent
aa396c6858
commit
842eba6688
@ -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 New Issue
Block a user