[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: |
jaydeepchauhan1494 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: |
Mon, 28 Dec 2020 05:22:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25713
Jaydeep Chauhan <jaydeepchauhan1494 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |WONTFIX
--- Comment #12 from Jaydeep Chauhan <jaydeepchauhan1494 at gmail dot com> ---
Hi All,
For long relative path still issue is there with Win10.
Also tried longpath enable
(Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
\LongPathsEnabled set 1) but it is not working.
C:\Testing_ld\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath>C:/WindRiver/compilers/llvm-11.0.0.1/WIN64/bin/ldpentium.exe
-v
GNU ld (GNU Binutils) 2.34
Without fix:-
============
C:\Testing_ld\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath>C:\Testing_ld\llvm-11.0.0.1\WIN64\bin\ldpentium.exe
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\test.o
C:\Testing_ld\llvm-11.0.0.1\WIN64\bin\ldpentium.exe: cannot find
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\test.o: No such file or directory
With fix:-
========
C:\Testing_ld\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath>C:/WindRiver/compilers/llvm-11.0.0.1/WIN64/bin/ldpentium.exe
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\incresepath\incresepath\incresepath\
incresepath\incresepath\incresepath\test.o
C:/WindRiver/compilers/llvm-11.0.0.1/WIN64/bin/ldpentium.exe: warning: cannot
find entry symbol _start; defaulting to 0000000008049000
Please find the attached patch (relative_path.patch) which fixes this issue.
Also let me know if there is any other alternate way to handle this.
Thanks,
Jaydeep
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/25713] Linker(ld.exe) runs in Windows unable to find file if path length is more than 260 characters.,
jaydeepchauhan1494 at gmail dot com <=