diff options
author | Nick Clifton <nickc@redhat.com> | 2001-06-15 09:03:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-06-15 09:03:14 +0000 |
commit | 7c8ca0e48870359d2841611bb4550b2edbcbff95 (patch) | |
tree | 482660bfe3ed9355b8fe0896e0d0420b796b2489 /bfd/coffgen.c | |
parent | 6770ec8c9e2d99d05dee69c17c6458ba242bdfa1 (diff) | |
download | gdb-7c8ca0e48870359d2841611bb4550b2edbcbff95.zip gdb-7c8ca0e48870359d2841611bb4550b2edbcbff95.tar.gz gdb-7c8ca0e48870359d2841611bb4550b2edbcbff95.tar.bz2 |
Chnage styp_flags_to_sec_flags() to a boolean function
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 5ca9c98..bd2d158 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -82,6 +82,8 @@ make_a_section_from_file (abfd, hdr, target_index) { asection *return_section; char *name; + boolean result = true; + flagword flags; name = NULL; @@ -142,8 +144,12 @@ make_a_section_from_file (abfd, hdr, target_index) return_section->userdata = NULL; return_section->next = (asection *) NULL; return_section->target_index = target_index; - return_section->flags = bfd_coff_styp_to_sec_flags_hook (abfd, hdr, name, - return_section); + + if (! bfd_coff_styp_to_sec_flags_hook (abfd, hdr, name, return_section, + & flags)) + result = false; + + return_section->flags = flags; /* At least on i386-coff, the line number count for a shared library section must be ignored. */ @@ -155,7 +161,8 @@ make_a_section_from_file (abfd, hdr, target_index) /* FIXME: should this check 'hdr->s_size > 0' */ if (hdr->s_scnptr != 0) return_section->flags |= SEC_HAS_CONTENTS; - return true; + + return result; } /* Read in a COFF object and make it into a BFD. This is used by |