mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Fix internal error in the linker by replacing a call to abort with an error message.
PR ld/20932 * elflink.c (bfd_elf_record_link_assignment): Replace call to abort with an error message and error return value.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2016-12-07 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR ld/20932
|
||||||
|
* elflink.c (bfd_elf_record_link_assignment): Replace call to
|
||||||
|
abort with an error message and error return value.
|
||||||
|
|
||||||
2016-12-06 Nick Clifton <nickc@redhat.com>
|
2016-12-06 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/20931
|
PR binutils/20931
|
||||||
|
@ -625,8 +625,11 @@ bfd_elf_record_link_assignment (bfd *output_bfd,
|
|||||||
(*bed->elf_backend_copy_indirect_symbol) (info, h, hv);
|
(*bed->elf_backend_copy_indirect_symbol) (info, h, hv);
|
||||||
break;
|
break;
|
||||||
case bfd_link_hash_warning:
|
case bfd_link_hash_warning:
|
||||||
abort ();
|
/* See PR 20932 for a reproducer. */
|
||||||
break;
|
_bfd_error_handler (_("%B: Attempt to assign a value to warning symbol '%s'"),
|
||||||
|
output_bfd, name);
|
||||||
|
bfd_set_error (bfd_error_invalid_operation);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If this symbol is being provided by the linker script, and it is
|
/* If this symbol is being provided by the linker script, and it is
|
||||||
|
Reference in New Issue
Block a user