bfd/ChangeLog
2017-02-07  Andrew Waterman  <andrew@sifive.com>
	* elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
	entry size if PLT header is written.
+2017-02-07  Andrew Waterman  <andrew@sifive.com>
+
+       * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
+       entry size if PLT header is written.
+
 2017-02-06  Sheldon Lobo  <sheldon.lobo@oracle.com>
 
        Fix sparc64 dynamic relocation processing to use the dynamic
 
 
          for (i = 0; i < PLT_HEADER_INSNS; i++)
            bfd_put_32 (output_bfd, plt_header[i], splt->contents + 4*i);
-       }
 
-      elf_section_data (splt->output_section)->this_hdr.sh_entsize
-       = PLT_ENTRY_SIZE;
+         elf_section_data (splt->output_section)->this_hdr.sh_entsize
+           = PLT_ENTRY_SIZE;
+       }
     }
 
   if (htab->elf.sgotplt)