diff options
author | Alan Modra <amodra@gmail.com> | 2020-11-24 08:45:33 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-11-25 16:35:31 +1030 |
commit | e54ae97fb7672350fc2bf28663cacf7721d9e30b (patch) | |
tree | 50a6b1743e21ca5b503457d3b2401f07deef4149 /gas/output-file.c | |
parent | eac5c6d392ba3a15b0d93b104b11b8c83097da81 (diff) | |
download | fsf-binutils-gdb-e54ae97fb7672350fc2bf28663cacf7721d9e30b.zip fsf-binutils-gdb-e54ae97fb7672350fc2bf28663cacf7721d9e30b.tar.gz fsf-binutils-gdb-e54ae97fb7672350fc2bf28663cacf7721d9e30b.tar.bz2 |
gas output_file_close error message
Seen on arm-elf, where ELFOSABI_ARM is set too late to get a warning
when processing ifunc related directives on their source line.
../gas/as-new ifunc.s -o tmpdir/ifunc.o
../gas/as-new: symbol type STT_GNU_IFUNC is supported only by GNU and FreeBSD targets
ifunc.s: Assembler messages:
ifunc.s: Fatal error: can't close tmpdir/ifunc.o: sorry, cannot handle this file
This patch doesn't fix the real underlying problem, just the late
error message where "can't close" is a misdirection in this case.
* output-file.c (output_file_close): Remove "can't close" from
error message.
* testsuite/gas/mips/reginfo-2.l: Update expected output.
Diffstat (limited to 'gas/output-file.c')
-rw-r--r-- | gas/output-file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/output-file.c b/gas/output-file.c index 5735981..b8d2132 100644 --- a/gas/output-file.c +++ b/gas/output-file.c @@ -68,6 +68,5 @@ output_file_close (const char *filename) stdoutput = NULL; if (! res) - as_fatal (_("can't close %s: %s"), filename, - bfd_errmsg (bfd_get_error ())); + as_fatal ("%s: %s", filename, bfd_errmsg (bfd_get_error ())); } |