]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/vxworks.em
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / emultempl / vxworks.em
index 7a21ac3fbccbc0135c6138daa483f31afb11656e..4e8d7d4e346b64ec223e9505f5f0dcdad5ea327a 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-2021 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -44,13 +44,13 @@ vxworks_after_open (void)
       && bfd_get_flavour (link_info.output_bfd) == bfd_target_elf_flavour
       && !_bfd_elf_link_create_dynamic_sections (link_info.input_bfds,
                                                 &link_info))
-    einfo ("%X%P: Cannot create dynamic sections %E\n");
+    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");
+    einfo (_("%X%P: dynamic sections created in non-dynamic link\n"));
 }
 
 EOF
@@ -83,7 +83,7 @@ PARSE_AND_LIST_ARGS_CASES=$PARSE_AND_LIST_ARGS_CASES'
 #
 #   (2) VXWORKS_BASE_EM_FILE set the hook's LDEMUL_FOO variable to
 #      gld${EMULATION_NAME}_foo.  This means that the file has
-#      replaced elf32.em's default definition, so we simply #define
+#      replaced elf.em's default definition, so we simply #define
 #      the current value of LDEMUL_FOO to vxworks_foo.
 #
 #   (3) VXWORKS_BASE_EM_FILE set the hook's LDEMUL_FOO variable to