]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elflink.c
Default dwarf_synchronous to true
[thirdparty/binutils-gdb.git] / bfd / elflink.c
index 4f72d1b2a90d69410bc4283e3336609b48df7456..6db6a9c0b4702c66d73edba87294e2a59ffafcf5 100644 (file)
@@ -2985,12 +2985,13 @@ _bfd_elf_link_output_relocs (bfd *output_bfd,
                      * bed->s->int_rels_per_ext_rel);
   while (irela < irelaend)
     {
-      if (*rel_hash)
+      if (rel_hash && *rel_hash)
        (*rel_hash)->has_reloc = 1;
       (*swap_out) (output_bfd, irela, erel);
       irela += bed->s->int_rels_per_ext_rel;
       erel += input_rel_hdr->sh_entsize;
-      rel_hash++;
+      if (rel_hash)
+       rel_hash++;
     }
 
   /* Bump the counter, so that we know where to add the next set of