* elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
This commit is contained in:
parent
f7c33884fa
commit
cd67d26656
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-07-31 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
|
||||
if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
|
||||
|
||||
2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
|
||||
|
||||
* aoutx.h (aout_link_check_ar_symbols): Whether to include an
|
||||
|
|
|
@ -809,6 +809,12 @@ elf_i386_copy_indirect_symbol (dir, ind)
|
|||
eind->dyn_relocs = NULL;
|
||||
}
|
||||
|
||||
if (ind->root.type == bfd_link_hash_indirect
|
||||
&& dir->got.refcount <= 0)
|
||||
{
|
||||
edir->tls_type = eind->tls_type;
|
||||
eind->tls_type = GOT_UNKNOWN;
|
||||
}
|
||||
_bfd_elf_link_hash_copy_indirect (dir, ind);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue