X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Femultempl%2Fvxworks.em;h=20a3b9720143eb5a5976014817896fbc26cf0b8c;hb=bf31e6044082986689e17af54e2ca3cc1ac8419b;hp=f6ad0b657d5272e42e1bbeb45dc109534165a34b;hpb=92b93329b58c744ea269b50f6278ed99416941a9;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/emultempl/vxworks.em b/ld/emultempl/vxworks.em index f6ad0b657d..20a3b97201 100644 --- a/ld/emultempl/vxworks.em +++ b/ld/emultempl/vxworks.em @@ -1,5 +1,5 @@ # This shell script emits a C file. -*- C -*- -# Copyright 2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2019 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -41,16 +41,16 @@ vxworks_after_open (void) if (force_dynamic && link_info.input_bfds - && output_bfd->xvec->flavour == bfd_target_elf_flavour + && 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 - && output_bfd->xvec->flavour == bfd_target_elf_flavour + && !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 @@ -67,7 +67,7 @@ PARSE_AND_LIST_LONGOPTS=$PARSE_AND_LIST_LONGOPTS' PARSE_AND_LIST_OPTIONS=$PARSE_AND_LIST_OPTIONS' fprintf (file, _("\ - --force-dynamic Always create dynamic sections\n")); + --force-dynamic Always create dynamic sections\n")); ' PARSE_AND_LIST_ARGS_CASES=$PARSE_AND_LIST_ARGS_CASES' @@ -83,14 +83,14 @@ 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 # something other than gld${EMULATION_NAME}_foo. We handle # this case in the same way as (1). for override in before_parse after_open; do - var="LDEMUL_`echo ${override} | tr a-z A-Z`" + var="LDEMUL_`echo ${override} | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`" eval value=\$${var} if test "${value}" = "gld${EMULATION_NAME}_${override}"; then fragment <