aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-dlx.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-dlx.c')
-rw-r--r--bfd/elf32-dlx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c
index 91441aa..c32f9df 100644
--- a/bfd/elf32-dlx.c
+++ b/bfd/elf32-dlx.c
@@ -546,7 +546,11 @@ dlx_rtype_to_howto (unsigned int r_type)
case R_DLX_RELOC_16_LO:
return & elf_dlx_reloc_16_lo;
default:
- BFD_ASSERT (r_type < (unsigned int) R_DLX_max);
+ if (r_type >= (unsigned int) R_DLX_max)
+ {
+ _bfd_error_handler (_("Invalid DLX reloc number: %d"), r_type);
+ r_type = 0;
+ }
return & dlx_elf_howto_table[r_type];
}
}