diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-03-09 23:02:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-03-09 23:02:43 +0000 |
commit | 5fc2a6ecd2fadf8dcbbae4a77550e8f067ad3a92 (patch) | |
tree | 70cd33a2ba2e93c8f8e5e2275c9629d9843b5570 /gas/config/obj-coff.c | |
parent | 99514eec14ad60d39a2da5ec34566426ae2e97f0 (diff) | |
download | gdb-5fc2a6ecd2fadf8dcbbae4a77550e8f067ad3a92.zip gdb-5fc2a6ecd2fadf8dcbbae4a77550e8f067ad3a92.tar.gz gdb-5fc2a6ecd2fadf8dcbbae4a77550e8f067ad3a92.tar.bz2 |
* config/obj-coff.c (coff_header_append): Check return value of
bfd_coff_swap_scnhdr_out.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 79b9af2..0fb2d26 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -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); } } |