correct ft32 reloc range test
[deliverable/binutils-gdb.git] / bfd / aoutx.h
index 4cadbfbd2fad64e0417c37bb316e3b63f202b3ae..525e5603ec90c296e086091327aa0c472cf06e41 100644 (file)
@@ -2289,10 +2289,12 @@ NAME (aout, swap_std_reloc_in) (bfd *abfd,
   if (r_baserel)
     r_extern = 1;
 
-  if (r_extern && r_index > symcount)
+  if (r_extern && r_index >= symcount)
     {
       /* We could arrange to return an error, but it might be useful
-        to see the file even if it is bad.  */
+        to see the file even if it is bad.  FIXME: Of course this
+        means that objdump -r *doesn't* see the actual reloc, and
+        objcopy silently writes a different reloc.  */
       r_extern = 0;
       r_index = N_ABS;
     }
This page took 0.024439 seconds and 4 git commands to generate.