[x86] Resolve non-PIC undefweak symbols in executable
[deliverable/binutils-gdb.git] / ld / emultempl / vxworks.em
index 7a21ac3fbccbc0135c6138daa483f31afb11656e..b7741abb07c5fbeb9553287d48132bbf3efa6ae4 100644 (file)
@@ -1,5 +1,5 @@
 # This shell script emits a C file. -*- C -*-
-#   Copyright 2006, 2007, 2008, 2010 Free Software Foundation, Inc.
+#   Copyright (C) 2006-2016 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -47,7 +47,7 @@ vxworks_after_open (void)
     einfo ("%X%P: Cannot create dynamic sections %E\n");
 
   if (!force_dynamic
-      && !link_info.shared
+      && !bfd_link_pic (&link_info)
       && bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
       && elf_hash_table (&link_info)->dynamic_sections_created)
     einfo ("%X%P: Dynamic sections created in non-dynamic link\n");
This page took 0.023994 seconds and 4 git commands to generate.