* objcopy.c (setup_section): Preserve SEC_RELOC when
--set-section-flags is used.
This commit is contained in:
parent
b18d0ba541
commit
1797833978
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-11-28 Mike Stump <mrs@wrs.com>
|
||||
|
||||
* objcopy.c (setup_section): Preserve SEC_RELOC when
|
||||
--set-section-flags is used.
|
||||
|
||||
2001-11-19 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* readelf.c (do_debug_str): New variable.
|
||||
|
|
|
@ -1595,7 +1595,7 @@ setup_section (ibfd, isection, obfdarg)
|
|||
}
|
||||
|
||||
if (p != NULL && p->set_flags)
|
||||
flags = p->flags | (flags & SEC_HAS_CONTENTS);
|
||||
flags = p->flags | (flags & (SEC_HAS_CONTENTS | SEC_RELOC));
|
||||
if (!bfd_set_section_flags (obfd, osection, flags))
|
||||
{
|
||||
err = _("flags");
|
||||
|
|
Loading…
Reference in a new issue