Don't set ELFOSABI_LINUX in dynamic ifunc-using executable.
[deliverable/binutils-gdb.git] / bfd / elf32-ppc.c
index 36674130e93bd68c1a69e57b79b666fab257790a..6e4cbc1238ebd0a70dfc36a800b04e77776ab2d7 100644 (file)
@@ -3113,7 +3113,8 @@ ppc_elf_add_symbol_hook (bfd *abfd,
       *valp = sym->st_size;
     }
 
-  if (ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC)
+  if ((abfd->flags & DYNAMIC) == 0
+      && ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC)
     elf_tdata (info->output_bfd)->has_ifunc_symbols = TRUE;
 
   return TRUE;
This page took 0.024137 seconds and 4 git commands to generate.