mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
|
||||
instead of "+=" to update 0.
|
||||
|
||||
2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf32-i386.c (elf_i386_create_dynamic_sections): Create the
|
||||
|
@ -3850,7 +3850,7 @@ elf_x86_64_size_dynamic_sections (bfd *output_bfd,
|
||||
/* Reserve room for the initial entry.
|
||||
FIXME: we could probably do away with it in this case. */
|
||||
if (htab->elf.splt->size == 0)
|
||||
htab->elf.splt->size += GET_PLT_ENTRY_SIZE (output_bfd);
|
||||
htab->elf.splt->size = GET_PLT_ENTRY_SIZE (output_bfd);
|
||||
htab->tlsdesc_plt = htab->elf.splt->size;
|
||||
htab->elf.splt->size += GET_PLT_ENTRY_SIZE (output_bfd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user