]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-64: Use "=" instead of "+=" to update 0
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Apr 2017 22:24:08 +0000 (15:24 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 27 Apr 2017 22:25:30 +0000 (15:25 -0700)
commit5b66fac4bad619766fb1a5f5179c08b67d48a8c5
tree6ba38b5b1aab3b360d2917456682a9d2ee3ca895
parent72bc1d246686ff38ef01f5a35769ebdbe39f023c
x86-64: Use "=" instead of "+=" to update 0

Use

  if (htab->elf.splt->size == 0)
    htab->elf.splt->size = GET_PLT_ENTRY_SIZE (output_bfd);

instead of

  if (htab->elf.splt->size == 0)
    htab->elf.splt->size += GET_PLT_ENTRY_SIZE (output_bfd);

* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
instead of "+=" to update 0.
bfd/ChangeLog
bfd/elf64-x86-64.c