diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-27 11:30:54 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-27 11:30:54 +0000 |
commit | ead49a57e845c028e794fdeb6f3b2492e70b918e (patch) | |
tree | e830d5b48fc73f225d5a269740e7d969e9a787be /ld/testsuite/ld-mips-elf/tls-hidden3.r | |
parent | 5cc40a5834a894e69901fc4a4e0e9b6cd9876e75 (diff) | |
download | gdb-ead49a57e845c028e794fdeb6f3b2492e70b918e.zip gdb-ead49a57e845c028e794fdeb6f3b2492e70b918e.tar.gz gdb-ead49a57e845c028e794fdeb6f3b2492e70b918e.tar.bz2 |
* elfxx-mips.c (mips_got_entry): Add more commentary.
(mips_elf_local_got_index): Use the hash table entry to record
the GOT index of forced-local symbols.
(mips_elf_initialize_tls_index): Rearrange code. Store the index
in either the hash table entry or the mips_got_entry, not both.
Add more commentary.
(mips_elf_multi_got): Make sure the g->next is nonnull when calling
mips_elf_initialize_tls_index.
* ld-mips-elf/tls-hidden3a.s, ld-mips-elf/tls-hidden3b.s,
* ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got,
* ld-mips-elf/tls-hidden3.ld, ld-mips-elf/tls-hidden3.r,
* ld-mips-elf/tls-hidden4a.s, ld-mips-elf/tls-hidden4b.s,
* ld-mips-elf/tls-hidden4.got, ld-mips-elf/tls-hidden4.r: New tests.
* ld-mips-elf/mips-elf.exp: Run them.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/tls-hidden3.r')
-rw-r--r-- | ld/testsuite/ld-mips-elf/tls-hidden3.r | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/tls-hidden3.r b/ld/testsuite/ld-mips-elf/tls-hidden3.r new file mode 100644 index 0000000..500e7b1 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/tls-hidden3.r @@ -0,0 +1,13 @@ + +Relocation section '\.rel\.dyn' at offset .* contains 6 entries: + Offset Info Type Sym\.Value Sym\. Name +00000000 00000000 R_MIPS_NONE +# +# The order of the next four entries doesn't matter. The important thing +# is that there is exactly one entry per GOT TLS slot. +# +00090020 0000002f R_MIPS_TLS_TPREL3 +0009002c 0000002f R_MIPS_TLS_TPREL3 +00090024 0000002f R_MIPS_TLS_TPREL3 +00090028 0000002f R_MIPS_TLS_TPREL3 +00090030 .*03 R_MIPS_REL32 00000000 undef |