link_hash_copy_indirect and symbol flags
[deliverable/binutils-gdb.git] / bfd / elf32-i386.c
index 8f4477d00efba9453c193e4ae7a190cf6508b024..0846cae689a88b66f640db35a5373d0e20c59e3f 100644 (file)
@@ -1168,7 +1168,8 @@ elf_i386_copy_indirect_symbol (struct bfd_link_info *info,
       /* If called to transfer flags for a weakdef during processing
         of elf_adjust_dynamic_symbol, don't copy non_got_ref.
         We clear it ourselves for ELIMINATE_COPY_RELOCS.  */
-      dir->ref_dynamic |= ind->ref_dynamic;
+      if (dir->versioned != versioned_hidden)
+       dir->ref_dynamic |= ind->ref_dynamic;
       dir->ref_regular |= ind->ref_regular;
       dir->ref_regular_nonweak |= ind->ref_regular_nonweak;
       dir->needs_plt |= ind->needs_plt;
This page took 0.023523 seconds and 4 git commands to generate.