bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/25713] Linker(ld.exe) runs in Windows unable to find file if pat


From: tromey at sourceware dot org
Subject: [Bug ld/25713] Linker(ld.exe) runs in Windows unable to find file if path length is more than 260 characters.
Date: Mon, 28 Feb 2022 15:27:08 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25713

--- Comment #46 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Nick Clifton from comment #43)
> (In reply to Tom Tromey from comment #42)
>  
> > ../../binutils-gdb/bfd/bfdio.c:129:60: error: 'partPathOrig' undeclared
>  
> *sigh* I admit that I had no way to test the patch, so I just hoped that it
> was correct.

It's a minor inconvenience, so no worries.

But FWIW I regularly do this kind of build on Fedora.
gdb doesn't actually build there due to some gnulib bug,
but if you disable gdb+gdbserver you can build things by
configuring with --host=i686-w64-mingw32 and making sure
you have the right mingw* packages installed.

(In reply to Torbjörn SVENSSON from comment #37)
> (In reply to Fred Eisele from comment #35)
> > Created attachment 13990 [details]
> > This patch handles long paths, relative paths, and paths containing '.' and
> > '..' on WIN32
> 
> I think the conversion from slash to backslash should be done after the call
> to MultiByteToWideChar to ensure that it's not part of a multi-byte sequence
> of, for example, a UTF-8 encoded string.

This can't happen in UTF-8, as all bytes in a multi-byte UTF-8 sequence
have the high bit set.

However it can happen in the 7-bit JIS encoding.  This isn't available on Linux
but maybe it is on Windows, I don't know.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]