]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/output-file.c
gas -Z flag
authorAlan Modra <amodra@gmail.com>
Mon, 10 Feb 2020 00:57:16 +0000 (11:27 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 10 Feb 2020 04:58:23 +0000 (15:28 +1030)
commit821948744f578be38aade35ae6db7deecb4ee7be
tree63c6964595a2ef911ad62a7ce022816fc50214aa
parente1f85e11f5875ac00a4b41f0ac45f1ba16fe5aed
gas -Z flag

-Z is supposed to "generate object file even after errors".  It
doesn't do so at the moment, unless you count a zero length object
file as useful output.  Fixed for most targets as follows.
I suspect avr and pru need target patches.

* output-file.c (output_file_close): Do a normal close when
flag_always_generate_output.
* write.c (write_object_file): Don't stop output when
flag_always_generate_output.
gas/ChangeLog
gas/output-file.c
gas/write.c