This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] i386: Update sgotplt_jump_table_size setting
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sat, 02 Sep 2017 14:54:37 -0400
- Subject: [binutils-gdb] i386: Update sgotplt_jump_table_size setting
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 92c10f5f61e8342eda76fb6927dcc1c885eda96a ***
Author: H.J. Lu <hjl.tools@gmail.com>
Branch: master
Commit: 92c10f5f61e8342eda76fb6927dcc1c885eda96a
i386: Update sgotplt_jump_table_size setting
elf_i386_size_dynamic_sections has
htab->next_tls_desc_index = htab->elf.srelplt->reloc_count;
htab->sgotplt_jump_table_size = htab->next_tls_desc_index * 4;
This patch changes it to
htab->sgotplt_jump_table_size
= elf_x86_compute_jump_table_size (htab)
Since elf_x86_compute_jump_table_size is defined as
((htab)->elf.srelplt->reloc_count * (htab)->got_entry_size)
there is no change in output. It makes elf_i386_size_dynamic_sections
the same as elf_x86_64_size_dynamic_sections.
* elf32-i386.c (elf_i386_size_dynamic_sections): Set
sgotplt_jump_table_size with elf_x86_compute_jump_table_size.