diff options
Diffstat (limited to 'ld/emultempl/mipself.em')
-rw-r--r-- | ld/emultempl/mipself.em | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/emultempl/mipself.em b/ld/emultempl/mipself.em index 611c0bd..0eb0813 100644 --- a/ld/emultempl/mipself.em +++ b/ld/emultempl/mipself.em @@ -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); |