[Bug driver/59321] -fuse-ld does not have effect on -print-prog-name
maemarcus at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 29 23:04:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list