PR 26086
	* dwarf.c (process_debug_info): Check that there is space in the
	debug_information array before filling in an entry.
+2020-06-08  Nick Clifton  <nickc@redhat.com>
+
+       PR 26086
+       * dwarf.c (process_debug_info): Check that there is space in the
+       debug_information array before filling in an entry.
+
 2020-06-06  Alan Modra  <amodra@gmail.com>
 
        * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
 
 
       if ((do_loc || do_debug_loc || do_debug_ranges)
          && num_debug_info_entries == 0
+         && alloc_num_debug_info_entries > unit
          && ! do_types)
        {
          debug_information [unit].cu_offset = cu_offset;