http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59321
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- -print-prog-name=foobar gives the path name of program, foobar. which isn't necessarily used by the GCC driver: [hjl@gnu-6 gcc-4.6.3-x32]$ ./bin/gcc -print-prog-name=as as [hjl@gnu-6 gcc-4.6.3-x32]$ ./bin/gcc -print-prog-name=foobar foobar Should we consider -print-prog-name=ld as special case?