[lld] [LLD][COFF] Add support for importing ARM64X images (PR #210080)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 08:26:41 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3146 tests passed
* 66 tests skipped
* 5 tests failed

## Failed Tests
(click on a test name to see its output)

### lld
<details>
<summary>lld.COFF/link-dll-arm64ec.s</summary>

```
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 2
split-file C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-arm64ec.s C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64ec.s.tmp.dir && cd C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64ec.s.tmp.dir
# executed command: split-file 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-arm64ec.s' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64ec.s.tmp.dir'
# note: command had no output on stdout or stderr
# executed command: cd 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64ec.s.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=arm64ec-windows test.s -o test.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=arm64ec-windows test.s -o test.obj
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=arm64ec-windows dll.s -o dll.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=arm64ec-windows dll.s -o dll.obj
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=arm64ec-windows C:\_work\llvm-project\llvm-project\lld\test\COFF/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=arm64ec-windows 'C:\_work\llvm-project\llvm-project\lld\test\COFF/Inputs/loadconfig-arm64ec.s' -o loadconfig-arm64ec.obj
# note: command had no output on stdout or stderr
# RUN: at line 8
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -machine:arm64ec -dll -noentry -out:import.dll loadconfig-arm64ec.obj dll.obj           -export:func -export:func2=func -export:func3=func -export:func4=func           -export:data,DATA -noimplib
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -machine:arm64ec -dll -noentry -out:import.dll loadconfig-arm64ec.obj dll.obj -export:func -export:func2=func -export:func3=func -export:func4=func -export:data,DATA -noimplib
# note: command had no output on stdout or stderr
# RUN: at line 12
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -machine:arm64ec -dll -noentry -out:out.dll loadconfig-arm64ec.obj test.obj import.dll           -lldmingw -exclude-all-symbols -auto-import:no
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -machine:arm64ec -dll -noentry -out:out.dll loadconfig-arm64ec.obj test.obj import.dll -lldmingw -exclude-all-symbols -auto-import:no
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -machine:arm64ec -dll -noentry -out:out.dll loadconfig-arm64ec.obj test.obj import.dll -lldmingw -exclude-all-symbols -auto-import:no
# | Exception Code: 0xC0000005
# | #0 0x00007ff99692f46c (C:\Windows\System32\KERNELBASE.dll+0x3f46c)
# | #1 0x00007ff72a00aa81 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1aa81)
# | #2 0x00007ff72a01758e (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x2758e)
# | #3 0x00007ff729ff1426 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1426)
# | #4 0x00007ff729ff1a8c (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1a8c)
# | #5 0x00007ff72f04df80 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x505df80)
# | #6 0x00007ff99bc04cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #7 0x00007ff9a77fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc0000005

--

```
</details>
<details>
<summary>lld.COFF/link-dll-arm64x.s</summary>

```
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 2
split-file C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-arm64x.s C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64x.s.tmp.dir && cd C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64x.s.tmp.dir
# executed command: split-file 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-arm64x.s' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64x.s.tmp.dir'
# note: command had no output on stdout or stderr
# executed command: cd 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-arm64x.s.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=arm64ec-windows sym-ec.s -o sym-ec.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=arm64ec-windows sym-ec.s -o sym-ec.obj
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=arm64ec-windows ref-ec.s -o ref-ec.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=arm64ec-windows ref-ec.s -o ref-ec.obj
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=aarch64-windows sym-native.s -o sym-native.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=aarch64-windows sym-native.s -o sym-native.obj
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=aarch64-windows ref-native.s -o ref-native.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=aarch64-windows ref-native.s -o ref-native.obj
# note: command had no output on stdout or stderr
# RUN: at line 8
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=arm64ec-windows C:\_work\llvm-project\llvm-project\lld\test\COFF/Inputs/loadconfig-arm64ec.s -o loadconfig-arm64ec.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=arm64ec-windows 'C:\_work\llvm-project\llvm-project\lld\test\COFF/Inputs/loadconfig-arm64ec.s' -o loadconfig-arm64ec.obj
# note: command had no output on stdout or stderr
# RUN: at line 9
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=aarch64-windows C:\_work\llvm-project\llvm-project\lld\test\COFF/Inputs/loadconfig-arm64.s -o loadconfig-arm64.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=aarch64-windows 'C:\_work\llvm-project\llvm-project\lld\test\COFF/Inputs/loadconfig-arm64.s' -o loadconfig-arm64.obj
# note: command had no output on stdout or stderr
# RUN: at line 11
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -machine:arm64x -dll -noentry -out:import.dll sym-ec.obj sym-native.obj loadconfig-arm64ec.obj loadconfig-arm64.obj
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -machine:arm64x -dll -noentry -out:import.dll sym-ec.obj sym-native.obj loadconfig-arm64ec.obj loadconfig-arm64.obj
# note: command had no output on stdout or stderr
# RUN: at line 13
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -machine:arm64 -dll -noentry -out:out-arm64.dll ref-native.obj import.dll           -lldmingw -exclude-all-symbols -auto-import:no
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -machine:arm64 -dll -noentry -out:out-arm64.dll ref-native.obj import.dll -lldmingw -exclude-all-symbols -auto-import:no
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -machine:arm64 -dll -noentry -out:out-arm64.dll ref-native.obj import.dll -lldmingw -exclude-all-symbols -auto-import:no
# | Exception Code: 0xC0000005
# | #0 0x00007ff99692f46c (C:\Windows\System32\KERNELBASE.dll+0x3f46c)
# | #1 0x00007ff72a00aa81 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1aa81)
# | #2 0x00007ff72a01758e (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x2758e)
# | #3 0x00007ff729ff1426 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1426)
# | #4 0x00007ff729ff1a8c (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1a8c)
# | #5 0x00007ff72f04df80 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x505df80)
# | #6 0x00007ff99bc04cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #7 0x00007ff9a77fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc0000005

--

```
</details>
<details>
<summary>lld.COFF/link-dll-i386.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 11
split-file C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-i386.s C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir
# executed command: split-file 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-i386.s' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 13
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=i386-windows-gnu C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir/lib.s -o C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=i386-windows-gnu 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir/lib.s' -o 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.o'
# note: command had no output on stdout or stderr
# RUN: at line 14
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -safeseh:no -noentry -dll -def:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir/lib.def C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.o -out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.dll -implib:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.implib.lib
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -safeseh:no -noentry -dll '-def:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir/lib.def' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.o' '-out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.dll' '-implib:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.implib.lib'
# note: command had no output on stdout or stderr
# RUN: at line 15
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=i386-windows-gnu C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir/main.s -o C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.main.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=i386-windows-gnu 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.dir/main.s' -o 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.main.o'
# note: command had no output on stdout or stderr
# RUN: at line 16
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -lldmingw C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.main.o -out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.main.exe C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.dll -opt:noref -verbose 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=LOG C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-i386.s
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -lldmingw 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.main.o' '-out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.main.exe' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-i386.s.tmp.lib.dll' -opt:noref -verbose
# note: command had no output on stdout or stderr
# error: command failed with exit status: 0xc0000005
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=LOG 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-i386.s'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-i386.s:64:8: error: LOG: expected string not found in input
# | # LOG: Automatically importing _variable from link-dll-i386.s.tmp.lib.dll
# |        ^
# | <stdin>:1:1: note: scanning from here
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | ^
# | <stdin>:3:353: note: possible intended match here
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -lldmingw C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-i386.s.tmp.main.o -out:C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-i386.s.tmp.main.exe C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-i386.s.tmp.lib.dll -opt:noref -verbose
# |                                                                                                                                                                                                                                                                                                                                                                 ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-i386.s
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug. 
# | check:64'0    {                                                                                                                                                    search range start (exclusive)
# | check:64'1                                                                                                                                                         error: no match found in search range
# |             2: Stack dump: 
# |             3: 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -lldmingw C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-i386.s.tmp.main.o -out:C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-i386.s.tmp.main.exe C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-i386.s.tmp.lib.dll -opt:noref -verbose 
# | check:64'2                                                                                                                                                                                                                                                                                                                                                                     ?                                                                                        possible intended match
# |             4: Exception Code: 0xC0000005 
# |             5: #0 0x00007ff99692f46c (C:\Windows\System32\KERNELBASE.dll+0x3f46c) 
# |             6: #1 0x00007ff72a00aa81 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1aa81) 
# |             7: #2 0x00007ff72a01758e (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x2758e) 
# |             8: #3 0x00007ff729ff1426 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1426) 
# |             9: #4 0x00007ff729ff1a8c (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1a8c) 
# |            10: #5 0x00007ff72f04df80 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x505df80) 
# |            11: #6 0x00007ff99bc04cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0) 
# |            12: #7 0x00007ff9a77fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb) 
# | check:64'3                                                                   } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>lld.COFF/link-dll-stdcall.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 13
split-file C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-stdcall.s C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir
# executed command: split-file 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-stdcall.s' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 15
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=i386-windows-gnu C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir/lib.s -o C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=i386-windows-gnu 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir/lib.s' -o 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.o'
# note: command had no output on stdout or stderr
# RUN: at line 16
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -safeseh:no -noentry -dll -def:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir/lib.def C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.o -out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.dll -implib:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.implib.lib
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -safeseh:no -noentry -dll '-def:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir/lib.def' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.o' '-out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.dll' '-implib:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.implib.lib'
# note: command had no output on stdout or stderr
# RUN: at line 17
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=i386-windows-gnu C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir/main.s -o C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.main.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=i386-windows-gnu 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.dir/main.s' -o 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.main.o'
# note: command had no output on stdout or stderr
# RUN: at line 18
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -lldmingw C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.main.o -out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.main.exe C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.dll -opt:noref 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=LOG C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-stdcall.s
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -lldmingw 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.main.o' '-out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.main.exe' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll-stdcall.s.tmp.lib.dll' -opt:noref
# note: command had no output on stdout or stderr
# error: command failed with exit status: 0xc0000005
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=LOG 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-stdcall.s'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-stdcall.s:82:12: error: LOG-DAG: expected string not found in input
# | # LOG-DAG: Resolving vectorcall@@8 by linking to _vectorcall
# |            ^
# | <stdin>:1:1: note: scanning from here
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | ^
# | <stdin>:3:394: note: possible intended match here
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -lldmingw C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-stdcall.s.tmp.main.o -out:C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-stdcall.s.tmp.main.exe C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-stdcall.s.tmp.lib.dll -opt:noref
# |                                                                                                                                                                                                                                                                                                                                                                                                          ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll-stdcall.s
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug. 
# | dag:82'0    {                                                                                                                                                    search range start (exclusive)
# | dag:82'1                                                                                                                                                         error: no match found in search range
# |           2: Stack dump: 
# |           3: 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -lldmingw C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-stdcall.s.tmp.main.o -out:C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-stdcall.s.tmp.main.exe C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll-stdcall.s.tmp.lib.dll -opt:noref 
# | dag:82'2                                                                                                                                                                                                                                                                                                                                                                                                              ?                                               possible intended match
# |           4: Exception Code: 0xC0000005 
# |           5: #0 0x00007ff99692f46c (C:\Windows\System32\KERNELBASE.dll+0x3f46c) 
# |           6: #1 0x00007ff72a00aa81 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1aa81) 
# |           7: #2 0x00007ff72a01758e (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x2758e) 
# |           8: #3 0x00007ff729ff1426 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1426) 
# |           9: #4 0x00007ff729ff1a8c (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1a8c) 
# |          10: #5 0x00007ff72f04df80 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x505df80) 
# |          11: #6 0x00007ff99bc04cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0) 
# |          12: #7 0x00007ff9a77fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb) 
# | dag:82'3                                                                   } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>lld.COFF/link-dll.s</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 13
split-file C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll.s C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir
# executed command: split-file 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll.s' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir'
# note: command had no output on stdout or stderr
# RUN: at line 15
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=x86_64-windows-gnu C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir/lib.s -o C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=x86_64-windows-gnu 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir/lib.s' -o 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.o'
# note: command had no output on stdout or stderr
# RUN: at line 16
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -noentry -dll -def:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir/lib.def C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.o -out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.dll -implib:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.implib.lib
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -noentry -dll '-def:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir/lib.def' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.o' '-out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.dll' '-implib:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.implib.lib'
# note: command had no output on stdout or stderr
# RUN: at line 17
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -filetype=obj -triple=x86_64-windows-gnu C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir/main.s -o C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.main.o
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -filetype=obj -triple=x86_64-windows-gnu 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.dir/main.s' -o 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.main.o'
# note: command had no output on stdout or stderr
# RUN: at line 18
c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe -lldmingw C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.main.o -out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.main.exe C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.dll -opt:noref -verbose 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=LOG C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll.s
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe' -lldmingw 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.main.o' '-out:C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.main.exe' 'C:\_work\llvm-project\llvm-project\build\tools\lld\test\COFF\Output\link-dll.s.tmp.lib.dll' -opt:noref -verbose
# note: command had no output on stdout or stderr
# error: command failed with exit status: 0xc0000005
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=LOG 'C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll.s'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll.s:66:8: error: LOG: expected string not found in input
# | # LOG: Automatically importing variable from link-dll.s.tmp.lib.dll
# |        ^
# | <stdin>:1:1: note: scanning from here
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | ^
# | <stdin>:3:344: note: possible intended match here
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -lldmingw C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll.s.tmp.main.o -out:C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll.s.tmp.main.exe C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll.s.tmp.lib.dll -opt:noref -verbose
# |                                                                                                                                                                                                                                                                                                                                                        ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\lld\test\COFF\link-dll.s
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug. 
# | check:66'0    {                                                                                                                                                    search range start (exclusive)
# | check:66'1                                                                                                                                                         error: no match found in search range
# |             2: Stack dump: 
# |             3: 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\lld-link.exe -lldmingw C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll.s.tmp.main.o -out:C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll.s.tmp.main.exe C:\\_work\\llvm-project\\llvm-project\\build\\tools\\lld\\test\\COFF\\Output\\link-dll.s.tmp.lib.dll -opt:noref -verbose 
# | check:66'2                                                                                                                                                                                                                                                                                                                                                            ?                                                                                  possible intended match
# |             4: Exception Code: 0xC0000005 
# |             5: #0 0x00007ff99692f46c (C:\Windows\System32\KERNELBASE.dll+0x3f46c) 
# |             6: #1 0x00007ff72a00aa81 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1aa81) 
# |             7: #2 0x00007ff72a01758e (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x2758e) 
# |             8: #3 0x00007ff729ff1426 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1426) 
# |             9: #4 0x00007ff729ff1a8c (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x1a8c) 
# |            10: #5 0x00007ff72f04df80 (c:\_work\llvm-project\llvm-project\build\bin\lld-link.exe+0x505df80) 
# |            11: #6 0x00007ff99bc04cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0) 
# |            12: #7 0x00007ff9a77fedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb) 
# | check:66'3                                                                   } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/210080


More information about the llvm-commits mailing list