diff options
author | Nick Clifton <nickc@redhat.com> | 2007-08-31 14:55:24 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-08-31 14:55:24 +0000 |
commit | 72e5abd91f341cfe9892c6638b9b9b8077342c86 (patch) | |
tree | a6cb577ffbf1ab72132c7d5db4ceb25991439e36 /bfd/mach-o.c | |
parent | 7dd078dfefccce8ccb62febd09de68ea03d8836e (diff) | |
download | gdb-72e5abd91f341cfe9892c6638b9b9b8077342c86.tar.gz |
* mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non zerofill sections.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r-- | bfd/mach-o.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 5ca581615b1..166dd6551ec 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -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) |