aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/emit-relocs.d
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2006-02-28 07:16:12 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2006-02-28 07:16:12 +0000
commit5ae0bfb60a576344d7f701605346282c1144499e (patch)
tree65e12d2ad3279a32dbaa7e1289beae61049b1fed /ld/testsuite/ld-i386/emit-relocs.d
parentcc10cae34af928d41c47ed1014abafde99165c28 (diff)
downloadgdb-5ae0bfb60a576344d7f701605346282c1144499e.zip
gdb-5ae0bfb60a576344d7f701605346282c1144499e.tar.gz
gdb-5ae0bfb60a576344d7f701605346282c1144499e.tar.bz2
bfd/
* elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. (elf_i386_link_hash_table_create): Initialize it. (elf_i386_compute_jump_table_size): Use it instead of srelplt->reloc_count. (allocate_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. ld/testsuite/ * ld-i386/emit-relocs.s, ld-i386/emit-relocs.d: New test. * ld-i386/i386.exp: Run it.
Diffstat (limited to 'ld/testsuite/ld-i386/emit-relocs.d')
-rw-r--r--ld/testsuite/ld-i386/emit-relocs.d8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/emit-relocs.d b/ld/testsuite/ld-i386/emit-relocs.d
new file mode 100644
index 0000000..0c16b94
--- /dev/null
+++ b/ld/testsuite/ld-i386/emit-relocs.d
@@ -0,0 +1,8 @@
+
+Relocation section '\.rel\.plt' at offset .* contains 1 entries:
+ Offset Info Type Sym\.Value Sym\. Name
+.* .*07 R_386_JUMP_SLOT 00000000 foo
+
+Relocation section '\.rel\.text' at offset .* contains 1 entries:
+ Offset Info Type Sym\.Value Sym\. Name
+.* .*04 R_386_PLT32 00000000 foo