Project

General

Profile

Actions

Bug #4270

closed

ld(1) argument error reporting is still pretty bad

Added by Rich Lowe about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2013-10-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

There are still several problems with the error reporting of ld(1).

The two I most recently ran into are:

% ld --somethingbad --library foo --library bar
ld: fatal: unrecognized option '--'
ld: fatal: use the -z help option for usage information

As you can see, it doesn't tell you which long option is bad.

Further

% ld -lfoo --library
ld: fatal: unrecognized option '-l'
ld: fatal: use the -z help option for usage information
% ld -Lfoo --library
ld: fatal: unrecognized option '-L'
ld: fatal: use the -z help option for usage information

No, clearly, ld does indeed understand -l and -L, but --library needs an argument.

Actions #1

Updated by Rich Lowe about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Difficulty changed from Medium to Bite-size

Resolved in c5accfb

Actions

Also available in: Atom PDF