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 | 3a4743fef3df74c486f23cedca987be77b43dd7a (patch) | |
tree | 252b38780260143b5f8741930984ea8c95f9ae30 /bfd | |
parent | dabbade67e0b558a90c99f1c5173026a2c339ada (diff) | |
download | gdb-3a4743fef3df74c486f23cedca987be77b43dd7a.zip gdb-3a4743fef3df74c486f23cedca987be77b43dd7a.tar.gz gdb-3a4743fef3df74c486f23cedca987be77b43dd7a.tar.bz2 |
* mach-o.c (bfd_mach_o_make_bfd_section): Fix test for non zerofill sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/mach-o.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b4e0a1d..2aec877 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/mach-o.c b/bfd/mach-o.c index 5ca5816..166dd65 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) |