aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2001-11-29 00:51:58 +0000
committerMike Stump <mrs@apple.com>2001-11-29 00:51:58 +0000
commit17978339780c12218db6fa909a9fcf5a33f3abe5 (patch)
tree2647dd24ea17ec1e4f73c12b137fa1c75894a120 /binutils/objcopy.c
parentb18d0ba541c450f965905f863c6f4f7eece621c4 (diff)
downloadgdb-17978339780c12218db6fa909a9fcf5a33f3abe5.zip
gdb-17978339780c12218db6fa909a9fcf5a33f3abe5.tar.gz
gdb-17978339780c12218db6fa909a9fcf5a33f3abe5.tar.bz2
* objcopy.c (setup_section): Preserve SEC_RELOC when
--set-section-flags is used.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r--binutils/objcopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 03ec035..b42fbe9 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -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");