link_hash_copy_indirect and symbol flags
[deliverable/binutils-gdb.git] / bfd / elf32-sh.c
index 5da1d088f573f6409c14ce461d41955a2cd3e081..9dd1157cf60680d6b63fec208c9a8508f4a032d8 100644 (file)
@@ -5733,7 +5733,8 @@ sh_elf_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.030086 seconds and 4 git commands to generate.