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.
This commit is contained in:
Nick Clifton 1998-05-14 22:07:30 +00:00
parent 7c511326e8
commit f0ba99a671
3 changed files with 43 additions and 2 deletions

View File

@ -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

View File

@ -1,3 +1,36 @@
Thu May 14 14:51:24 1998 Nick Clifton <nickc@cygnus.com>
* 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 <tromey@cygnus.com>
* ldmain.c (main): Conditionally call setlocale.
* ld.h: Include <locale.h> if HAVE_LOCALE_H.
(LC_MESSAGES): Now can be defined even when ENABLE_NLS.
Mon Apr 27 11:56:21 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Change version number to 2.9.4

View File

@ -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"));
}