* config/obj-coff.c (coff_header_append): Check return value of

bfd_coff_swap_scnhdr_out.
This commit is contained in:
Ian Lance Taylor 1995-03-09 23:02:43 +00:00
parent 99514eec14
commit 5fc2a6ecd2
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 9 18:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
* config/obj-coff.c (coff_header_append): Check return value of
bfd_coff_swap_scnhdr_out.
Thu Mar 9 13:51:30 1995 Doug Evans <dje@canuck.cygnus.com>
Delete this patch, it breaks the h8300 assembler.

View File

@ -1834,6 +1834,8 @@ coff_header_append (abfd, h)
bfd_coff_swap_scnhdr_out (abfd,
&(segment_info[i].scnhdr),
buffer);
if (size == 0)
as_bad ("bfd_coff_swap_scnhdr_out failed");
bfd_write (buffer, size, 1, abfd);
}
}