diff options
author | Diego Novillo <dnovillo@google.com> | 2001-03-22 00:29:15 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2001-03-22 00:29:15 +0000 |
commit | 7a65545dc56bca34872a8343a4079e043347debd (patch) | |
tree | ff6a34f79a368435f06c8bf74bb4a56e4a7a6059 /bfd | |
parent | 84346e11ea3d9a98216ce8eded615888d80b7cad (diff) | |
download | gdb-7a65545dc56bca34872a8343a4079e043347debd.zip gdb-7a65545dc56bca34872a8343a4079e043347debd.tar.gz gdb-7a65545dc56bca34872a8343a4079e043347debd.tar.bz2 |
2001-03-21 Diego Novillo <dnovillo@redhat.com>
(_bfd_mips_elf_relocate_section): Give a better error message when
a relocation is not recognized.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-mips.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5e14bf7..8c32aa8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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> * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index f1a1ac3..33b5e4e 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -6771,6 +6771,7 @@ _bfd_mips_elf_relocate_section (output_bfd, info, input_bfd, input_section, REL relocation. */ boolean rela_relocation_p = true; int r_type = ELF32_R_TYPE (rel->r_info); + const char * msg = (const char *) NULL; /* Find the relocation howto for this relocation. */ 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; case bfd_reloc_notsupported: - abort (); - break; + msg = _("internal error: unsupported relocation error"); + info->callbacks->warning + (info, msg, name, input_bfd, input_section, rel->r_offset); + return false; case bfd_reloc_overflow: if (use_saved_addend_p) |