aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1998-05-14 22:07:30 +0000
committerNick Clifton <nickc@redhat.com>1998-05-14 22:07:30 +0000
commitf0ba99a67149a79cded7859e9d451f726f13fa99 (patch)
treec318f4d8169ac1227dc3243598cc9f3ea2f6ae69 /ld
parent7c511326e8ebb36f0e8000851e530528e4ab3605 (diff)
downloadgdb-f0ba99a67149a79cded7859e9d451f726f13fa99.zip
gdb-f0ba99a67149a79cded7859e9d451f726f13fa99.tar.gz
gdb-f0ba99a67149a79cded7859e9d451f726f13fa99.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/.Sanitize2
-rw-r--r--ld/ChangeLog33
-rw-r--r--ld/lexsup.c10
3 files changed, 43 insertions, 2 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index ee0057b..374ed9e 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 0477822..f12ea14 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 72537a7..28b7e09 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"));
}