https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118848

            Bug ID: 118848
           Summary: error message prints wrong ld name when -fuse-ld is
                    used
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

just saw this, not having gold installed with the binutils 2.44 release:

$ gcc -fuse-ld=gold foo.c
collect2: fatal error: cannot find 'ld'
compilation terminated.

I would expect 'ld.gold' as the output.


gcc -print-prog-name shows the correct name:

$ gcc -fuse-ld=gold -print-prog-name=ld
ld.gold

Reply via email to