diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-06-26 17:53:57 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-06-26 17:53:57 +0000 |
commit | d5a7bb530d6ea294848fa3c95181dc48648a4f33 (patch) | |
tree | 4e50cfb8521449a8b6cd92e36e5402499aff6623 /binutils/windres.c | |
parent | 907672ebb2cc46316f542e4ca0fd7185f729bfbf (diff) | |
download | fsf-binutils-gdb-d5a7bb530d6ea294848fa3c95181dc48648a4f33.zip fsf-binutils-gdb-d5a7bb530d6ea294848fa3c95181dc48648a4f33.tar.gz fsf-binutils-gdb-d5a7bb530d6ea294848fa3c95181dc48648a4f33.tar.bz2 |
* windres.c (main): Quit if we didn't get any resources.
* rescoff.c (write_coff_file): Don't free the relocation array
until after we've closed the BFD.
Diffstat (limited to 'binutils/windres.c')
-rw-r--r-- | binutils/windres.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/windres.c b/binutils/windres.c index 3134b3d..f12d32e 100644 --- a/binutils/windres.c +++ b/binutils/windres.c @@ -960,6 +960,9 @@ main (argc, argv) break; } + if (resources == NULL) + fatal ("no resources"); + /* Sort the resources. This is required for COFF, convenient for rc, and unimportant for res. */ |