summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2006-02-04 08:29:58 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2006-02-04 08:29:58 +0000
commit9e4ecac3f2e75194bc3d6db373a96089f5e1a046 (patch)
tree0a0f6fdd82f735c871a8936c89a6c352c42ee550 /bfd
parent1877a32a9c7194777f510cb2572cf5813be87dc9 (diff)
downloadgdb-9e4ecac3f2e75194bc3d6db373a96089f5e1a046.tar.gz
bfd/
* elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol has already been assigned a GOT index, copy that index to the current hash table entry. ld/testsuite/ * ld-mips-elf/tls-hidden2a.s, ld-mips-elf/tls-hidden2b.s, * ld/testsuite/ld-mips-elf/tls-hidden2.d, * ld/testsuite/ld-mips-elf/tls-hidden2-got.d: New test. * ld-mips-elf/mips-elf.exp: Run it.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elfxx-mips.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5bd1e341ac0..f2ca17dcf48 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-04 Richard Sandiford <richard@codesourcery.com>
+
+ * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
+ has already been assigned a GOT index, copy that index to the
+ current hash table entry.
+
2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 99a0def3b9d..2675ee08a10 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -2994,7 +2994,10 @@ mips_elf_initialize_tls_index (void **entryp, void *p)
if (g->next == NULL)
{
if (entry->d.h->tls_type & GOT_TLS_OFFSET_DONE)
- return 1;
+ {
+ entry->gotidx = entry->d.h->tls_got_offset;
+ return 1;
+ }
entry->d.h->tls_type |= GOT_TLS_OFFSET_DONE;
}
}