]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/solaris2.em
Add output_type to bfd_link_info
[thirdparty/binutils-gdb.git] / ld / emultempl / solaris2.em
index e0edce26461f7fc4114498821f5789e02805792a..dfb173ddd314c6f02dbb7d387d236f0fd11e7656 100644 (file)
@@ -53,7 +53,7 @@ elf_solaris2_before_allocation (void)
   const char **sym;
 
   /* Do this for both executables and shared objects.  */
-  if (!link_info.relocatable)
+  if (!bfd_link_relocatable (&link_info))
     {
       for (sym = global_syms; *sym != NULL; sym++)
        {
@@ -75,7 +75,7 @@ elf_solaris2_before_allocation (void)
     }
 
   /* Only do this if emitting a shared object and versioning is in place. */
-  if (link_info.shared
+  if (bfd_link_dll (&link_info)
       && (link_info.version_info != NULL
          || link_info.create_default_symver))
     {
@@ -127,7 +127,7 @@ elf_solaris2_after_allocation (void)
   const char **sym;
 
   /* Do this for both executables and shared objects.  */
-  if (!link_info.relocatable)
+  if (!bfd_link_relocatable (&link_info))
     {
       for (sym = local_syms; *sym != NULL; sym++)
        {