bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld: Wrong error message on unknown -r* and -i* command-line options


From: Nicholas Clifton
Subject: Re: ld: Wrong error message on unknown -r* and -i* command-line options
Date: Mon, 23 Feb 2015 15:34:58 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Igor,

$ ld -iqwerty
ld: bad -rpath option

Thanks very much for reporting this problem. I have checked in the patch below to fix the bug. In the future though, please could you use the binutils bugzilla system to report bugs: https://sourceware.org/bugzilla

Cheers
  Nick

ld/ChangeLog
2015-02-23  Nick Clifton  <address@hidden>

        * lexsup.c (parse_args): Produce a more reasonable error message
        when -ixxx or -rxxx is the last option on the linker command line.

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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]