mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* config/tc-alpha.c (tc_gen_reloc): Output a sensible error
message if bfd_reloc_type_lookup fails, rather than calling assert.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
|
Wed Jun 19 11:31:50 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-alpha.c (tc_gen_reloc): Output a sensible error
|
||||||
|
message if bfd_reloc_type_lookup fails, rather than calling
|
||||||
|
assert.
|
||||||
|
|
||||||
* config/tc-alpha.c (alpha_force_relocation): Add
|
* config/tc-alpha.c (alpha_force_relocation): Add
|
||||||
BFD_RELOC_12_PCREL to switch.
|
BFD_RELOC_12_PCREL to switch.
|
||||||
|
|
||||||
|
@ -442,7 +442,13 @@ tc_gen_reloc (sec, fixp)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
|
reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
|
||||||
assert (reloc->howto != 0);
|
if (reloc->howto == NULL)
|
||||||
|
{
|
||||||
|
as_bad_where (fixp->fx_file, fixp->fx_line,
|
||||||
|
"cannot represent `%s' relocation in object file",
|
||||||
|
bfd_get_reloc_code_name (fixp->fx_r_type));
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
if (!fixp->fx_pcrel != !reloc->howto->pc_relative)
|
if (!fixp->fx_pcrel != !reloc->howto->pc_relative)
|
||||||
{
|
{
|
||||||
as_fatal ("internal error? cannot generate `%s' relocation",
|
as_fatal ("internal error? cannot generate `%s' relocation",
|
||||||
|
Reference in New Issue
Block a user