mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
Improve RISC-V LD error message
I recently ran into this error message and found it's not helpful: it just tells me some temporary file can't be linked. This slightly improved one at least tells me it's because of an elf32/elf64 conflict. * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Improve error message when linking elf32 and elf64.
This commit is contained in:

committed by
Alan Modra

parent
dd1d944e23
commit
96b0927de3
@ -1,3 +1,8 @@
|
|||||||
|
2016-12-20 Palmer Dabbelt <palmer@dabbelt.com>
|
||||||
|
|
||||||
|
* elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Improve
|
||||||
|
error message when linking elf32 and elf64.
|
||||||
|
|
||||||
2016-12-19 Christian Groessler <chris@groessler.org>
|
2016-12-19 Christian Groessler <chris@groessler.org>
|
||||||
|
|
||||||
* elf32-arm.c (elf32_arm_popcount): Rename from 'popcount'. Make
|
* elf32-arm.c (elf32_arm_popcount): Rename from 'popcount'. Make
|
||||||
|
@ -2561,8 +2561,9 @@ _bfd_riscv_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
|
|||||||
if (strcmp (bfd_get_target (ibfd), bfd_get_target (obfd)) != 0)
|
if (strcmp (bfd_get_target (ibfd), bfd_get_target (obfd)) != 0)
|
||||||
{
|
{
|
||||||
(*_bfd_error_handler)
|
(*_bfd_error_handler)
|
||||||
(_("%B: ABI is incompatible with that of the selected emulation"),
|
(_("%B: ABI is incompatible with that of the selected emulation:\n"
|
||||||
ibfd);
|
" target emulation `%s' does not match `%s'"),
|
||||||
|
ibfd, bfd_get_target (ibfd), bfd_get_target (obfd));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user