http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59321

--- Comment #8 from maemarcus at gmail dot com ---
Dear H.J. Lu,

You patch works for me, thanks a lot! I noticed however, that with -fuse-ld ld
from the different location is used for me:

$ kernelgen-gcc -print-prog-name=ld
.../INSTALL/bin/kernelgen-ld
$ kernelgen-gcc -fuse-ld=bfd -print-prog-name=ld
.../INSTALL/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../x86_64-unknown-linux-gnu/bin/ld.bfd
$ kernelgen-gcc -fuse-ld=gold -print-prog-name=ld
.../INSTALL/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../x86_64-unknown-linux-gnu/bin/ld.gold

I think the patch should first check if newname concatted with suffix exists,
or somehow else deal with possibly prefixed-ld names.

Reply via email to