From 998d811a23ca3f2c463dfaf40259486ff9958244 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 15 Jul 2014 13:09:55 -0700 Subject: 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. --- ld/testsuite/ld-i386/pr17057.s | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ld/testsuite/ld-i386/pr17057.s (limited to 'ld/testsuite/ld-i386/pr17057.s') diff --git a/ld/testsuite/ld-i386/pr17057.s b/ld/testsuite/ld-i386/pr17057.s new file mode 100644 index 0000000..a4e00ec --- /dev/null +++ b/ld/testsuite/ld-i386/pr17057.s @@ -0,0 +1,3 @@ + .text + leal my_tls@TLSDESC(%ebx), %eax + call foo@PLT -- cgit v1.1