* elflink.c (_bfd_elf_link_assign_sym_version): Improve error
[deliverable/binutils-gdb.git] / gold / resolve.cc
index 1272e0588a9634d8d932a70f3f8228efa668831d..1d874863d628588cace76341d8a6bbf8874a19bd 100644 (file)
@@ -156,7 +156,12 @@ Symbol_table::resolve(Sized_symbol<size>* to,
       gold_exit(false);
     }
 
-  if (object->is_dynamic())
+  if (!object->is_dynamic())
+    {
+      // Record that we've seen this symbol in a regular object.
+      to->set_in_reg();
+    }
+  else
     {
       frombits |= (1 << 1);
 
This page took 0.023882 seconds and 4 git commands to generate.