--set-section-flags patch from dje.
authorIan Lance Taylor <ian@airs.com>
Fri, 17 Feb 1995 20:42:22 +0000 (20:42 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 17 Feb 1995 20:42:22 +0000 (20:42 +0000)
binutils/objcopy.c

index 75961543e766c1a0587a048303edfdf479bcb9a6..86232ad9555dcd0725277b5f0af80a69979a9e6d 100644 (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";
This page took 0.032416 seconds and 4 git commands to generate.