From f0ba99a67149a79cded7859e9d451f726f13fa99 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 14 May 1998 22:07:30 +0000 Subject: [PATCH] Added support for display emulation specific command line options. Added internationalisation to emulation templates. Added --support-old-code command line option to armcoff and pe emulations. --- ld/.Sanitize | 2 +- ld/ChangeLog | 33 +++++++++++++++++++++++++++++++++ ld/lexsup.c | 10 +++++++++- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/ld/.Sanitize b/ld/.Sanitize index ee0057bfcbc..374ed9e8f2d 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -320,5 +320,5 @@ if [ -n "${safe}" -a ! -f po/.Recover/ld.pot ]; then mv po/ld.pot po/.Recover fi # If this fails, Sanitization must fail. -xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/ld.pot || exit 1 +xgettext -c -C -k_ -kN_ -f po/POTFILES.in -o po/ld.pot || exit 1 # eof diff --git a/ld/ChangeLog b/ld/ChangeLog index 0477822f613..f12ea144390 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,36 @@ +Thu May 14 14:51:24 1998 Nick Clifton + + * ldemul.h: Add new prototype: ldemul_list_emulation_options. + (ld_emulation_xfer_struct): Add new field: list_options. + * ldemul.c (ldemul_list_options): New function. Call the + list_options field of the ld_emulation_xfer_struct for each + supported emulation, if such a function is present. + * lexsup.c (help): Call ldemul_list_emulation_options. + * emultempl/pe.em (gld_<>_list_options): New function. Describe + the pe emulation specific command line options. + * emultempl/armcoff.em (gld<>_list_options): New function. + Describe the armcoff emulation specific command line options. + + * emultempl/pe.em: Add a new command line option: + --support-old-code. + * emultempl/armcoff.em: Ditto. + * ld.texinfo: Document the --support-old-code option. + + * Makefile.in: Add emulation files for POTFILES.in target. + * emultempl/pe.em: Internationalise suitable strings. + * emultempl/armcoff.em: Internationalise suitable strings. + * po/POTFILES.in: Rebuilt. + +Sun May 10 22:36:30 1998 Jeffrey A Law (law@cygnus.com) + + * po/Make-in (install-info): New target. + +Tue Apr 28 19:18:30 1998 Tom Tromey + + * ldmain.c (main): Conditionally call setlocale. + * ld.h: Include if HAVE_LOCALE_H. + (LC_MESSAGES): Now can be defined even when ENABLE_NLS. + Mon Apr 27 11:56:21 1998 Ian Lance Taylor * configure.in: Change version number to 2.9.4 diff --git a/ld/lexsup.c b/ld/lexsup.c index 72537a77cdc..28b7e091ebb 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -399,7 +399,7 @@ parse_args (argc, argv) /* Because we permit long options to start with a single dash, and we have a --library option, and the -l option is conventionally used with an immediately following argument, we can have bad - results of somebody tries to use -l with a library whose name + results if somebody tries to use -l with a library whose name happens to start with "ibrary", as in -li. We avoid problems by simply turning -l into --library. This means that users will have to use two dashes in order to use --library, which is OK @@ -994,6 +994,7 @@ help () } } + /* xgettext:c-format */ printf (_("%s: supported targets:"), program_name); targets = bfd_target_list (); for (pp = targets; *pp != NULL; pp++) @@ -1001,8 +1002,15 @@ help () free (targets); printf ("\n"); + /* xgettext:c-format */ printf (_("%s: supported emulations: "), program_name); ldemul_list_emulations (stdout); printf ("\n"); + + /* xgettext:c-format */ + printf (_("%s: emulation specific options:\n"), program_name); + ldemul_list_emulation_options (stdout); + printf ("\n"); + printf (_("\nReport bugs to bug-gnu-utils@gnu.org\n")); } -- 2.30.2