diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-07-15 13:09:55 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-07-15 13:09:55 -0700 |
commit | 998d811a23ca3f2c463dfaf40259486ff9958244 (patch) | |
tree | b3ca3258d07e8ef24751a7c10708e1f7a68d7f85 /ld/testsuite/ld-i386/pr17057.s | |
parent | 41e995687391695e16550eb9c18da8e5d0dcffa9 (diff) | |
download | binutils-998d811a23ca3f2c463dfaf40259486ff9958244.zip binutils-998d811a23ca3f2c463dfaf40259486ff9958244.tar.gz binutils-998d811a23ca3f2c463dfaf40259486ff9958244.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-i386/pr17057.s')
-rw-r--r-- | ld/testsuite/ld-i386/pr17057.s | 3 |
1 files changed, 3 insertions, 0 deletions
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 |