diff options
author | Nick Clifton <nickc@redhat.com> | 2015-02-23 15:33:56 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-02-23 15:33:56 +0000 |
commit | f971c12fc5aca91875b2fff0a115611577d01909 (patch) | |
tree | 0c820956d696d5561a07bc78085ab5a3bd0478a0 /ld/lexsup.c | |
parent | 0f8f0c57ea4742ad2d9b0598a18243331c1c06e3 (diff) | |
download | gdb-f971c12fc5aca91875b2fff0a115611577d01909.zip gdb-f971c12fc5aca91875b2fff0a115611577d01909.tar.gz gdb-f971c12fc5aca91875b2fff0a115611577d01909.tar.bz2 |
Fixes a problem where "ld -ixxx" would report an error of "ld: bad -rpath option".
* lexsup.c (parse_args): Produce a more reasonable error message
when -ixxx or -rxxx is the last option on the linker command line.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index db74ff8..aa6c3cd 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -999,7 +999,7 @@ parse_args (unsigned argc, char **argv) an error message here. We cannot just make this a warning, increment optind, and continue because getopt is too confused and will seg-fault the next time around. */ - einfo(_("%P%F: bad -rpath option\n")); + einfo(_("%P%F: unrecognised option: %s\n"), argv[optind]); link_info.relocatable = TRUE; config.build_constructors = FALSE; |