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.
This commit is contained in:
parent
0f8f0c57ea
commit
f971c12fc5
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue