This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fixes a problem where "ld -ixxx" would report an error of "ld: bad -rpath option".


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f971c12fc5aca91875b2fff0a115611577d01909

commit f971c12fc5aca91875b2fff0a115611577d01909
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Feb 23 15:33:56 2015 +0000

    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.

Diff:
---
 ld/ChangeLog | 5 +++++
 ld/lexsup.c  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 43cf4e8..30f965e 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-23  Nick Clifton  <nickc@redhat.com>
+
+	* lexsup.c (parse_args): Produce a more reasonable error message
+	when -ixxx or -rxxx is the last option on the linker command line.
+
 2015-02-14  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/17973
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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]