From: Mike Stump Date: Thu, 29 Nov 2001 00:51:58 +0000 (+0000) Subject: * objcopy.c (setup_section): Preserve SEC_RELOC when X-Git-Tag: cygnus_cvs_20020108_pre~482 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17978339780c12218db6fa909a9fcf5a33f3abe5;p=platform%2Fupstream%2Fbinutils.git * objcopy.c (setup_section): Preserve SEC_RELOC when --set-section-flags is used. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1eb553ec987..2066770735b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-11-28 Mike Stump + + * objcopy.c (setup_section): Preserve SEC_RELOC when + --set-section-flags is used. + 2001-11-19 Nick Clifton * readelf.c (do_debug_str): New variable. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 03ec035ce3e..b42fbe90d51 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");