839fa38
--- binutils.orig/bfd/aoutx.h	2018-04-26 15:14:18.411450291 +0100
839fa38
+++ binutils-2.30/bfd/aoutx.h	2018-04-26 17:22:38.328770529 +0100
839fa38
@@ -2283,10 +2283,12 @@ NAME (aout, swap_std_reloc_in) (bfd *abf
839fa38
   if (r_baserel)
839fa38
     r_extern = 1;
839fa38
 
839fa38
-  if (r_extern && r_index > symcount)
839fa38
+  if (r_extern && r_index >= symcount)
839fa38
     {
839fa38
       /* We could arrange to return an error, but it might be useful
839fa38
-	 to see the file even if it is bad.  */
839fa38
+	 to see the file even if it is bad.  FIXME: Of course this
839fa38
+	 means that objdump -r *doesn't* see the actual reloc, and
839fa38
+	 objcopy silently writes a different reloc.  */
839fa38
       r_extern = 0;
839fa38
       r_index = N_ABS;
839fa38
     }