mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
ld: Report error reason when a library cannot be found
With "ulimit -n 20", report: ld: cannot find -lgcc: Too many open files instead of ld: cannot find -lgcc * ldfile.c (ldfile_open_file): Rport error reason when a library cannot be found.
This commit is contained in:
parent
96a7037cd8
commit
265dcb69c2
@ -491,11 +491,11 @@ ldfile_open_file (lang_input_statement_type *entry)
|
||||
}
|
||||
else /* We ignore the return status of the script
|
||||
and always print the error message. */
|
||||
einfo (_("%P: cannot find %s\n"), entry->local_sym_name);
|
||||
einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
|
||||
}
|
||||
#endif
|
||||
else
|
||||
einfo (_("%P: cannot find %s\n"), entry->local_sym_name);
|
||||
einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
|
||||
|
||||
/* PR 25747: Be kind to users who forgot to add the
|
||||
"lib" prefix to their library when it was created. */
|
||||
|
Loading…
Reference in New Issue
Block a user