mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
2001-03-21 Diego Novillo <dnovillo@redhat.com>
(_bfd_mips_elf_relocate_section): Give a better error message when a relocation is not recognized.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2001-03-21 Diego Novillo <dnovillo@redhat.com>
|
||||||
|
|
||||||
|
(_bfd_mips_elf_relocate_section): Give a better error message when
|
||||||
|
a relocation is not recognized.
|
||||||
|
|
||||||
2001-03-21 Alan Modra <alan@linuxcare.com.au>
|
2001-03-21 Alan Modra <alan@linuxcare.com.au>
|
||||||
|
|
||||||
* elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
|
* elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
|
||||||
|
@ -6771,6 +6771,7 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
REL relocation. */
|
REL relocation. */
|
||||||
boolean rela_relocation_p = true;
|
boolean rela_relocation_p = true;
|
||||||
int r_type = ELF32_R_TYPE (rel->r_info);
|
int r_type = ELF32_R_TYPE (rel->r_info);
|
||||||
|
const char * msg = (const char *) NULL;
|
||||||
|
|
||||||
/* Find the relocation howto for this relocation. */
|
/* Find the relocation howto for this relocation. */
|
||||||
if (r_type == R_MIPS_64 && !ABI_64_P (output_bfd))
|
if (r_type == R_MIPS_64 && !ABI_64_P (output_bfd))
|
||||||
@ -7025,8 +7026,10 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
case bfd_reloc_notsupported:
|
case bfd_reloc_notsupported:
|
||||||
abort ();
|
msg = _("internal error: unsupported relocation error");
|
||||||
break;
|
info->callbacks->warning
|
||||||
|
(info, msg, name, input_bfd, input_section, rel->r_offset);
|
||||||
|
return false;
|
||||||
|
|
||||||
case bfd_reloc_overflow:
|
case bfd_reloc_overflow:
|
||||||
if (use_saved_addend_p)
|
if (use_saved_addend_p)
|
||||||
|
Reference in New Issue
Block a user