[gold][patch] Use dlerror to provide a more complete error message when we fail to load a plugin.

Rafael Espindola espindola@google.com
Mon Jun 28 19:01:00 GMT 2010

With the attached patch gold produces errors like

./gold/ld-new: error: foobar.so: could not load plugin library:
foobar.so: cannot open shared object file: No such file or directory


./gold/ld-new: error: LLVMgold.so: could not load plugin library:
.../libc.so.6: version `GLIBC_2.4' not found (required by LLVMgold.so)

Is it OK?

2010-06-28  Rafael Espindola  <espindola@google.com>

	* plugin.cc (Plugin::load): Use dlerror.

Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100628/2baf7bf9/attachment.bin>

More information about the Binutils mailing list