[PATCH] ld: Fix a H8/300 specific test case

Jan Dubiec jdx@o2.pl
Tue Nov 11 01:20:01 GMT 2025


On 11.11.2025 00:05, Alan Modra wrote:
[...]
> No, everything standard here.
> 
> I can run the following without error from the command line.
> ../gas/as-new -o tmpdir/relax-7\?.o /home/alan/src/binutils-gdb/ld/testsuite/ld-h8300/relax-7?.s
> (And without the backslash if I remove the new tmpdir/relax-7a.o and
> tmpdir/relax-7b.o)
> 
> Perhaps it is a filesystem restriction for you?
> 
Indeed, my source and build directories are on a NTFS volume where ? is 
one of the "special characters". But this raises questions. How should 
the test case really work, i.e. what should do the globbing – the test 
suite (e.g. run_dump_test) or gas? What was the author's (Nick Clifton's 
AFAIR) intention? Until this moment it was pretty clear to me that this 
was the test suite's task, but now I am not sure…

/J.D.

P.S. "echo bar > foo?.txt" or "echo bar > foo\?.txt" do not work in 
neither cmd.exe nor PowerShell (native "Windows shells") but work 
*somehow* in bash (MSYS2). "Somehow" means they do something, not 
necessarily what the user expects.



More information about the Binutils mailing list