* elf-bfd.h (struct elf_link_hash_entry): Add other field.
[deliverable/binutils-gdb.git] / bfd / elflink.h
index dcc5827db30728d260bc5d2a1adc24bd5879294a..3c8c33956c9373795234ebb53d12f87aa71451dd 100644 (file)
@@ -802,6 +802,10 @@ elf_link_add_object_symbols (abfd, info)
              h->type = ELF_ST_TYPE (sym.st_info);
            }
 
+         if (sym.st_other != 0
+             && (definition || h->other == 0))
+           h->other = sym.st_other;
+
          /* Set a flag in the hash table entry indicating the type of
             reference or definition we just found.  Keep a count of
             the number of dynamic symbols we find.  A dynamic symbol
@@ -2576,7 +2580,7 @@ elf_link_output_extsym (h, data)
 
   sym.st_value = 0;
   sym.st_size = h->size;
-  sym.st_other = 0;
+  sym.st_other = h->other;
   if (h->root.type == bfd_link_hash_undefweak
       || h->root.type == bfd_link_hash_defweak)
     sym.st_info = ELF_ST_INFO (STB_WEAK, h->type);
This page took 0.023723 seconds and 4 git commands to generate.