PR27719, lang_mark_undefineds trashes memory
[deliverable/binutils-gdb.git] / ld / emultempl / solaris2.em
index 9fb739c598b1b5a42de15e0d2bbe0b4d1e629199..e2b4fd63b7bc2b85709b4288af90eebe21ff56c4 100644 (file)
@@ -64,7 +64,8 @@ elf_solaris2_before_allocation (void)
   const char **sym;
 
   /* Do this for both executables and shared objects.  */
-  if (!bfd_link_relocatable (&link_info))
+  if (!bfd_link_relocatable (&link_info)
+      && is_elf_hash_table (link_info.hash))
     {
       for (sym = global_syms; *sym != NULL; sym++)
        {
This page took 0.024325 seconds and 4 git commands to generate.