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: fredrick.eisele at gmail dot com
Subject: [Bug ld/25713] Linker(ld.exe) runs in Windows unable to find file if path length is more than 260 characters.
Date: Thu, 17 Feb 2022 15:02:29 +0000

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

--- Comment #28 from Fred Eisele <fredrick.eisele at gmail dot com> ---
You raise a good point.
There is a problem with binutils paths generally.
POSIX path names are constrained to a fairly small set of characters.
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271
In Windows land unicode characters are allowed.
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

However, I do not think PR 25713 is going to tackle that larger issue.
I think it should be restricted to dealing with the filename as provided by the
first argument to _bfd_real_fopen. 
https://github.com/bminor/binutils-gdb/blob/fb583cfc0936554a1f8d86ef2b6649bf511d6df8/bfd/bfdio.c#L89

    FILE *_bfd_real_fopen (const char *filename, const char *modes);

Is there any plan to tackle the issue of accommodating paths from multiple
filesystems?

-- 
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]