aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/solaris2.em
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emultempl/solaris2.em')
-rw-r--r--ld/emultempl/solaris2.em6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/emultempl/solaris2.em b/ld/emultempl/solaris2.em
index e0edce2..dfb173d 100644
--- a/ld/emultempl/solaris2.em
+++ b/ld/emultempl/solaris2.em
@@ -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++)
{