aboutsummaryrefslogtreecommitdiff
path: root/bfd/cofflink.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-02 18:18:33 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-02 18:18:33 +0000
commit5dda64611e38a0dd65494bf8ad0602dc1f0ebc0b (patch)
treec48d57bab39a9f9dfdfdb36a4e94135a1bda2364 /bfd/cofflink.c
parent0a5177673827670a46368682b5fb71bf5fb929a1 (diff)
downloadgdb-5dda64611e38a0dd65494bf8ad0602dc1f0ebc0b.zip
gdb-5dda64611e38a0dd65494bf8ad0602dc1f0ebc0b.tar.gz
gdb-5dda64611e38a0dd65494bf8ad0602dc1f0ebc0b.tar.bz2
* cofflink.c (_bfd_coff_generic_relocate_section): Print an error
message for bfd_reloc_outofrange, rather than aborting. From Philippe De Muyter <phdm@info.ucl.ac.be>.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r--bfd/cofflink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 1dc2e77..8e11b09 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -2495,6 +2495,13 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,
abort ();
case bfd_reloc_ok:
break;
+ case bfd_reloc_outofrange:
+ (*_bfd_error_handler)
+ ("%s: bad reloc address in section `%s' at address 0x%lx",
+ bfd_get_filename (input_bfd),
+ bfd_get_section_name (input_bfd, input_section),
+ (unsigned long) rel->r_vaddr);
+ return false;
case bfd_reloc_overflow:
{
const char *name;