]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/mipself.em
Add output_type to bfd_link_info
[thirdparty/binutils-gdb.git] / ld / emultempl / mipself.em
index 611c0bd349f34c79f8b7043f1660e29ebb6f2b34..0eb0813b4e4edc9a7429658137b63959c2ec9301 100644 (file)
@@ -216,7 +216,7 @@ mips_before_allocation (void)
   flagword flags;
 
   flags = elf_elfheader (link_info.output_bfd)->e_flags;
-  if (!link_info.shared
+  if (!bfd_link_pic (&link_info)
       && !link_info.nocopyreloc
       && (flags & (EF_MIPS_PIC | EF_MIPS_CPIC)) == EF_MIPS_CPIC)
     _bfd_mips_elf_use_plts_and_copy_relocs (&link_info);