* cofflink.c (mark_relocs): Exclude relocs with -1 r_symndx
from marking sym_indices.
+2016-07-15 Alan Modra <amodra@gmail.com>
+
+ * cofflink.c (mark_relocs): Exclude relocs with -1 r_symndx
+ from marking sym_indices.
+
2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
* reloc.c (bfd_perform_relocation): Try the `howto' handler
in the relocation table. This will then be picked up in the
skip/don't-skip pass. */
for (; irel < irelend; irel++)
- flaginfo->sym_indices[ irel->r_symndx ] = -1;
+ if ((unsigned long) irel->r_symndx < obj_raw_syment_count (input_bfd))
+ flaginfo->sym_indices[irel->r_symndx] = -1;
}
}