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  <ni...@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.

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;


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to