+1999-06-22  Nick Clifton  <nickc@cygnus.com>
+
+       * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
+       handling R_V850_22_PCREL relocation.
+
 1999-06-21  Ian Lance Taylor  <ian@zembu.com>
 
        * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
 
                + input_section->output_offset
                + offset);
 
+      /* If the sign extension will corrupt the value then we have overflowed.  */
+      if (((value & 0xff000000) != 0x0) && ((value & 0xff000000) != 0xff000000))
+       return bfd_reloc_overflow;
+      
       value = SEXT24 (value);  /* Only the bottom 24 bits of the PC are valid */
       break;