aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorChandra Chavva <cchavva@redhat.com>2000-10-17 20:10:20 +0000
committerChandra Chavva <cchavva@redhat.com>2000-10-17 20:10:20 +0000
commitea20a7da87b245e4eb49ccc0688b9052c8815fe1 (patch)
tree0b63af43f455a9ea9019e5b1d539419a83670ad0 /ld
parent13a5e3b8410e0157f5fb92e53b05a044236087b2 (diff)
downloadgdb-ea20a7da87b245e4eb49ccc0688b9052c8815fe1.zip
gdb-ea20a7da87b245e4eb49ccc0688b9052c8815fe1.tar.gz
gdb-ea20a7da87b245e4eb49ccc0688b9052c8815fe1.tar.bz2
Added new option --target-help.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/ld.texinfo4
-rw-r--r--ld/lexsup.c7
3 files changed, 17 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 02ffadc..1ec8006 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
+
+ * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
+ options.
+ * ld.texinfo: Added notes about this new option.
+
2000-10-16 Nick Clifton <nickc@redhat.com>
* emultempl/pe.em (_after_open): Add tests of return values from
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 0b898ec..156ac6c 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -919,6 +919,10 @@ specifying @samp{--no-gc-sections} on the command line.
@item --help
Print a summary of the command-line options on the standard output and exit.
+@kindex --target-help
+@item --target-help
+Print a summary of all target specific options on the standard output and exit.
+
@kindex -Map
@item -Map @var{mapfile}
Print a link map to the file @var{mapfile}. See the description of the
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 57735d4..35ed3c0 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -126,6 +126,7 @@ int parsing_defsym = 0;
#define OPTION_FINI (OPTION_INIT + 1)
#define OPTION_SECTION_START (OPTION_FINI + 1)
#define OPTION_UNIQUE (OPTION_SECTION_START + 1)
+#define OPTION_TARGET_HELP (OPTION_UNIQUE + 1)
/* The long options. This structure is used for both the option
parsing and the help text. */
@@ -332,6 +333,8 @@ static const struct ld_option ld_options[] = {
'\0', N_("[=COUNT]"), N_("Split output sections every COUNT relocs"), TWO_DASHES },
{ {"stats", no_argument, NULL, OPTION_STATS},
'\0', NULL, N_("Print memory usage statistics"), TWO_DASHES },
+ { {"target-help", no_argument, NULL, OPTION_TARGET_HELP},
+ '\0', NULL, N_("Display target specific options"), TWO_DASHES },
{ {"task-link", required_argument, NULL, OPTION_TASK_LINK},
'\0', N_("SYMBOL"), N_("Do task level linking"), TWO_DASHES },
{ {"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT},
@@ -892,6 +895,10 @@ parse_args (argc, argv)
set_section_start (sec_name, optarg2);
}
break;
+ case OPTION_TARGET_HELP:
+ /* Mention any target specific options. */
+ ldemul_list_emulation_options (stdout);
+ exit (0);
case OPTION_TBSS:
set_section_start (".bss", optarg);
break;