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.
+2020-11-25 Alan Modra <amodra@gmail.com>
+
+ * output-file.c (output_file_close): Remove "can't close" from
+ error message.
+ * testsuite/gas/mips/reginfo-2.l: Update expected output.
+
2020-11-04 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
* config/tc-aarch64.c (aarch64_cpus): Add Cortex-A78C.
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 ()));
}
.*: incorrect `\.reginfo' section size; expected 24, got 28
.*: Assembler messages:
-.*: Fatal error: can't close .*: bad value
+.*: Fatal error: .*: bad value