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 | 24545985d1290df5b8a0b04cdac598965afad102 (patch) | |
tree | d1843ed55c79f4747a00ec2727d58518d8488239 /bfd/coffgen.c | |
parent | d40ec9e53b8464d818a2823db6f5dbdc7706cd8b (diff) | |
download | binutils-redhat-24545985d1290df5b8a0b04cdac598965afad102.tar.gz |
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 5ca9c982fc..bd2d158ba5 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 |