[PATCH] ld: testsuite: Fix a few backslash-related issues on MinGW.

Maciej W. Rozycki macro@orcam.me.uk
Fri Jul 17 11:35:44 GMT 2026


On Fri, 17 Jul 2026, Jan Beulich wrote:

> > Several relatively new test cases fail on MinGW:
> > [...]
> > Running /d/Works/binutils/ld/testsuite/ld-archive/archive.exp ...
> > FAIL: Script fake archive link
> > FAIL: Script fake whole archive link
> > FAIL: Script fake group archive link accept
> > [...]
> > 
> > This is because on Windows ld uses "\" instead of "/" to create full file
> > names as shown in the log below:
> 
> Yet: Does it need to? If slashes work, can't ld simply use slashes?

 Seconded: what's the root cause, i.e. where does the backslash exactly 
come from?

  Maciej


More information about the Binutils mailing list