* cofflink.c (_bfd_coff_generic_relocate_section): Print an error
authorIan Lance Taylor <ian@airs.com>
Mon, 2 Dec 1996 18:18:33 +0000 (18:18 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 2 Dec 1996 18:18:33 +0000 (18:18 +0000)
message for bfd_reloc_outofrange, rather than aborting.  From
Philippe De Muyter <phdm@info.ucl.ac.be>.

bfd/cofflink.c

index 1dc2e7710da1bd8d805b3d15d9589f94d4280b77..8e11b09b740a2c21307cff9c3bd9c6b21059121b 100644 (file)
@@ -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;