aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-04-11 16:55:27 +0000
committerNick Clifton <nickc@redhat.com>2002-04-11 16:55:27 +0000
commit5835c2123df2eadd2597686f28650392b78b6a0a (patch)
tree84efc19d2ca0879d3ee6732a27a6e9fef42a2db4
parent690649bea2775fc4c0a61b0fc2ad338436345e64 (diff)
downloadgdb-5835c2123df2eadd2597686f28650392b78b6a0a.zip
gdb-5835c2123df2eadd2597686f28650392b78b6a0a.tar.gz
gdb-5835c2123df2eadd2597686f28650392b78b6a0a.tar.bz2
Add 'n' in order to prevent "-n" from being taken as an abbreviation for
"--no-pipeline-knowledge".
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/armelf.em7
-rw-r--r--ld/testsuite/ld-selective/selective.exp2
3 files changed, 14 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 57b607c..3663948 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+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-08 Alan Modra <amodra@bigpond.net.au>
* ldlang.c (lang_size_sections_1): Don't complain about
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\''},
diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp
index e9cf48f..2678409 100644
--- a/ld/testsuite/ld-selective/selective.exp
+++ b/ld/testsuite/ld-selective/selective.exp
@@ -104,11 +104,13 @@ foreach testitem $seltests {
}
# V850 targets need libgcc.a
+ # FIXME: This does not work with installed toolchains!
if [istarget v850*-*-elf] {
set objfile "$objfile -L ../gcc -lgcc"
}
# ARM targets need libgcc.a in THUMB mode so that __call_via_r3 is provided
+ # FIXME: This does not work with installed toolchains!
if {[istarget arm-*-*] || [istarget xscale-*-*]} {
set objfile "$objfile -L ../gcc -lgcc"
}