Replace assert (about endianism) with an error message
This commit is contained in:
parent
71acc4e8d5
commit
b23f908b61
2 changed files with 18 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
1999-05-07 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* coff-mcore.c (coff_mcore_relocate_section): Replace assert about
|
||||||
|
endianism with an error message.
|
||||||
|
|
||||||
Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
|
Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
|
||||||
|
|
||||||
* dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
|
* dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
|
||||||
|
|
|
@ -357,8 +357,19 @@ coff_mcore_relocate_section (output_bfd, info, input_bfd, input_section,
|
||||||
if (info->relocateable)
|
if (info->relocateable)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
BFD_ASSERT (input_bfd->xvec->byteorder
|
/* Check if we have the same endianess */
|
||||||
== output_bfd->xvec->byteorder);
|
if ( input_bfd->xvec->byteorder != output_bfd->xvec->byteorder
|
||||||
|
&& output_bfd->xvec->byteorder != BFD_ENDIAN_UNKNOWN)
|
||||||
|
{
|
||||||
|
(*_bfd_error_handler)
|
||||||
|
(_("%s: compiled for a %s endian system and target is %s endian.\n"),
|
||||||
|
bfd_get_filename (input_bfd),
|
||||||
|
bfd_big_endian (input_bfd) ? "big" : "little",
|
||||||
|
bfd_big_endian (output_bfd) ? "big" : "little");
|
||||||
|
|
||||||
|
bfd_set_error (bfd_error_wrong_format);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
hihalf = false;
|
hihalf = false;
|
||||||
hihalf_val = 0;
|
hihalf_val = 0;
|
||||||
|
|
Loading…
Reference in a new issue