ld: Report error reason when a library cannot be found
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Jul 2021 18:59:03 +0000 (11:59 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 28 Jul 2021 13:01:10 +0000 (06:01 -0700)
commit265dcb69c2ec6e9f24f40cb25349534e44360098
tree3629186dcb3347a435fbe9e31cf0bfcadde1ae2b
parent96a7037cd8573cf065aa6b12baca68696f96d9ca
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.
ld/ldfile.c