From: Jakub Jelinek Date: Wed, 31 Jul 2002 15:04:06 +0000 (+0000) Subject: * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd67d26656b0a34397fe0b6be4e9f3083e487eba;p=binutils-gdb.git * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type if _bfd_elf_link_hash_copy_indirect will swap got.refcount. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7772a0637c1..9052b644ea8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-07-31 Jakub Jelinek + + * 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 * aoutx.h (aout_link_check_ar_symbols): Whether to include an diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 7f26fabb368..997bf372270 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -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); }