* mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non zerofill sections.
authorNick Clifton <nickc@redhat.com>
Fri, 31 Aug 2007 14:55:24 +0000 (14:55 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 31 Aug 2007 14:55:24 +0000 (14:55 +0000)
bfd/ChangeLog
bfd/mach-o.c

index b4e0a1d4a30cef9f9edc600ee9a088e9f392d1e4..2aec877277675acabc572a99ae0d5bae8a6030d2 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-31  Jesse Michael  <jmichael@suse.de>
+
+       * mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non
+       zerofill sections.
+
 2007-08-28  David Heine  <dlheine@tensilica.com>
 
        * elf32-xtensa.c (compute_ebb_actions): Update removed_bytes when
index 5ca581615b1434b296f14ab5f02c7b765bf12a29..166dd6551ec995f260e03c00ac3dd8b8695f6431 100644 (file)
@@ -644,7 +644,7 @@ bfd_mach_o_make_bfd_section (bfd *abfd, bfd_mach_o_section *section)
   sprintf (sname, "%s.%s.%s", prefix, section->segname, section->sectname);
 
   flags = SEC_ALLOC;
-  if (!(section->flags & BFD_MACH_O_S_ZEROFILL))
+  if ((section->flags & SECTION_TYPE) != BFD_MACH_O_S_ZEROFILL)
     flags = SEC_HAS_CONTENTS | SEC_LOAD | SEC_ALLOC | SEC_CODE;
   bfdsec = bfd_make_section_anyway_with_flags (abfd, sname, flags);
   if (bfdsec == NULL)