diff options
author | Nick Clifton <nickc@redhat.com> | 2011-01-31 16:43:15 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-01-31 16:43:15 +0000 |
commit | a22429b98e4c117b40f9693585c546067d9a4c0e (patch) | |
tree | 5f1e04a6a9fa728098780203e09c477a9c269f5f /gas/write.c | |
parent | 45a4356715b9d5c35c581c14e17978a1cd2aed18 (diff) | |
download | gdb-a22429b98e4c117b40f9693585c546067d9a4c0e.zip gdb-a22429b98e4c117b40f9693585c546067d9a4c0e.tar.gz gdb-a22429b98e4c117b40f9693585c546067d9a4c0e.tar.bz2 |
* write.c (write_contents): Include output file name and bfd error
value when reporting the inability to write to the output file.
* config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
frag that has a non-zero fill value.
* gas/all/align.d: Skip for the RX.
* gas/elf/group1a.d: Likewise.
* gas/elf/groupautoa.d: Likewise.
* gas/elf/elf.exp: Do not run section5 test for the RX port.
* gas/elf/section4.d: Likewise.
* gas/elf/section7.d: Likewise.
* gas/macros/semi.s: Fill with a non-zero pattern.
* gas/macros/semi.d: Expect non-zero fill value.
* gas/rx/bcnd.d: Update expected disassembly.
* gas/rx/bra.d: Likewise.
* gas/rx/macros.inc: Add reg1 macro.
* gas/rx/max.sm: Use reg1 macro to avoid generating illegal NOP
instruction.
* gas/rx/mov.sm: Likewise.
* gas/rx/max.d: Update expected disassembly.
* gas/rx/mov.d: Likewise.
* gas/rx/rx-asm-good.s: Use Renesas section names.
* gas/rx/rx-asm-good.d: Update expected disassembly.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index 5f10bad..a5d2b4d 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1565,7 +1565,9 @@ write_contents (bfd *abfd ATTRIBUTE_UNUSED, (stdoutput, sec, buf, (file_ptr) offset, (bfd_size_type) n_per_buf * fill_size); if (!x) - as_fatal (_("cannot write to output file")); + as_fatal (_("cannot write to output file '%s': %s"), + stdoutput->filename, + bfd_errmsg (bfd_get_error ())); offset += n_per_buf * fill_size; } } |