Update elf_i386_compute_jump_table_size
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Jul 2014 20:09:55 +0000 (13:09 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Jul 2014 20:09:55 +0000 (13:09 -0700)
commit998d811a23ca3f2c463dfaf40259486ff9958244
treeb3ca3258d07e8ef24751a7c10708e1f7a68d7f85
parent41e995687391695e16550eb9c18da8e5d0dcffa9
Update elf_i386_compute_jump_table_size

Commit e1f987424b7b3f5ac63a2a6ae044a202a44b8ff8 changed how
next_tls_desc_index was set up.  This patch updates
elf_i386_compute_jump_table_size to use elf.srelplt->reloc_count
instead of next_tls_desc_index.

bfd/

PR ld/17057
* elf32-i386.c (elf_i386_compute_jump_table_size): Replace
next_tls_desc_index with elf.srelplt->reloc_count.

ld/testsuite/

PR ld/17057
* ld-i386/i386.exp: Run pr17057.
* ld-i386/pr17057.d: New file.
* ld-i386/pr17057.s: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
ld/testsuite/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr17057.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr17057.s [new file with mode: 0644]