aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-05-10 10:08:53 +0000
committerNick Clifton <nickc@redhat.com>2002-05-10 10:08:53 +0000
commitdff355522461ab309c7acaf34172b016c0b8132e (patch)
treeb6f10c8c4b9936bcc9f122e1fd8c662620e7d564 /ld
parentb5f41832c7a5ee14c845ebe5196efb4c3d50f1c0 (diff)
downloadgdb-dff355522461ab309c7acaf34172b016c0b8132e.zip
gdb-dff355522461ab309c7acaf34172b016c0b8132e.tar.gz
gdb-dff355522461ab309c7acaf34172b016c0b8132e.tar.bz2
Add 'n' to short option list in order to prevent "-n" from being taken as an
abbreviation for "--no-pipeline-knowledge".
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/armelf.em7
2 files changed, 12 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 00968dc..6f6e0d3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -28,6 +28,12 @@
* emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
* emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
+2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
+ to prevent "-n" from being taken as an abbreviation for
+ "--no-pipeline-knowledge".
+
2002-04-04 Alan Modra <amodra@bigpond.net.au>
* dep-in.sed: Cope with absolute paths.
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em
index c570486..78a0c35 100644
--- a/ld/emultempl/armelf.em
+++ b/ld/emultempl/armelf.em
@@ -156,7 +156,12 @@ PARSE_AND_LIST_PROLOGUE='
#define OPTION_THUMB_ENTRY 301
'
-PARSE_AND_LIST_SHORTOPTS=p
+# Note we add 'n' to the short option list in order to prevent
+# getopt_long_only from thinking that -n is a unique abbreviation
+# for --no-pipeline-knowledge. There is no case to handle 'n' here
+# however, so instead it will be passed back to parse_args() in
+# lexsup.c where it will be handled.
+PARSE_AND_LIST_SHORTOPTS=pn
PARSE_AND_LIST_LONGOPTS='
{ "no-pipeline-knowledge", no_argument, NULL, '\'p\''},