mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
(elf_link_add_object_symbols): Set the error code to bfd_error_wrong_format when
the input format does not match the output format.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-09-06 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* elflink.c (elf_link_add_object_symbols): Set the error code to
|
||||||
|
bfd_error_wrong_format when the input format does not match the
|
||||||
|
output format.
|
||||||
|
|
||||||
2004-09-06 Alan Modra <amodra@bigpond.net.au>
|
2004-09-06 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-ppc.c (is_ppc64_target): New function, extracted from..
|
* elf64-ppc.c (is_ppc64_target): New function, extracted from..
|
||||||
|
@ -2940,7 +2940,10 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
|
|||||||
|| !is_elf_hash_table (hash_table)
|
|| !is_elf_hash_table (hash_table)
|
||||||
|| hash_table->root.creator != abfd->xvec)
|
|| hash_table->root.creator != abfd->xvec)
|
||||||
{
|
{
|
||||||
|
if (info->relocatable)
|
||||||
bfd_set_error (bfd_error_invalid_operation);
|
bfd_set_error (bfd_error_invalid_operation);
|
||||||
|
else
|
||||||
|
bfd_set_error (bfd_error_wrong_format);
|
||||||
goto error_return;
|
goto error_return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user