-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[LLD][COFF] Require explicit specification of ARM64EC target #116281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ RUN: split-file %s %t.dir && cd %t.dir | |
| RUN: llvm-mc -filetype=obj -triple=aarch64-windows arm64-data-sym.s -o arm64-data-sym.obj | ||
| RUN: llvm-mc -filetype=obj -triple=arm64ec-windows arm64ec-data-sym.s -o arm64ec-data-sym.obj | ||
| RUN: llvm-mc -filetype=obj -triple=x86_64-windows x86_64-data-sym.s -o x86_64-data-sym.obj | ||
| RUN: llvm-mc -filetype=obj -triple=i686-windows x86_64-data-sym.s -o i686-data-sym.obj | ||
| RUN: llvm-cvtres -machine:arm64x -out:arm64x-resource.obj %S/Inputs/resource.res | ||
|
|
||
| RUN: lld-link -out:test.dll -machine:arm64ec arm64ec-data-sym.obj -dll -noentry | ||
|
|
@@ -36,7 +37,7 @@ ARM64X-DATA: 03030303 01010101 02020202 | |
|
|
||
| RUN: not lld-link -out:test.dll -machine:arm64 arm64-data-sym.obj arm64ec-data-sym.obj \ | ||
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT1 %s | ||
| INCOMPAT1: lld-link: error: arm64ec-data-sym.obj: machine type arm64ec conflicts with arm64 | ||
| INCOMPAT1: arm64ec-data-sym.obj: machine type arm64ec conflicts with arm64 | ||
|
|
||
| RUN: not lld-link -out:test.dll -machine:arm64ec arm64ec-data-sym.obj arm64-data-sym.obj \ | ||
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT2 %s | ||
|
|
@@ -46,6 +47,26 @@ RUN: not lld-link -out:test.dll -machine:arm64 arm64-data-sym.obj x86_64-data-sy | |
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT3 %s | ||
| INCOMPAT3: lld-link: error: x86_64-data-sym.obj: machine type x64 conflicts with arm64 | ||
|
|
||
| arm64ec machine type can't be inferred, it must be specified explicitly. | ||
| RUN: not lld-link -out:test.dll arm64ec-data-sym.obj \ | ||
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT4 %s | ||
| INCOMPAT4: lld-link: error: arm64ec-data-sym.obj: machine type arm64ec is ambiguous and cannot be inferred, use /machine:arm64ec or /machine:arm64x | ||
|
|
||
| RUN: not lld-link -out:test.dll x86_64-data-sym.obj arm64ec-data-sym.obj \ | ||
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT4 %s | ||
|
|
||
| RUN: not lld-link -out:test.dll aarch64-data-sym.obj arm64ec-data-sym.obj \ | ||
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT4 %s | ||
|
|
||
| RUN: not lld-link -out:test.dll i686-data-sym.obj arm64ec-data-sym.obj \ | ||
| RUN: -dll -noentry 2>&1 | FileCheck -check-prefix=INCOMPAT5 %s | ||
| INCOMPAT5: arm64ec-data-sym.obj: machine type arm64ec conflicts with x86 | ||
|
|
||
| arm64x input implies arm64 target | ||
| RUN: lld-link -out:test.dll -machine:arm64 arm64x-resource.obj -dll -noentry | ||
|
||
| RUN: llvm-readobj --file-headers test.dll | FileCheck -check-prefix=ARM64-HEADER %s | ||
| ARM64-HEADER: Machine: IMAGE_FILE_MACHINE_ARM64 (0xAA64) | ||
|
|
||
| #--- arm64ec-data-sym.s | ||
| .data | ||
| .globl arm64ec_data_sym | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened with the
lld-link: error:prefix here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An oversight, fixed, sorry.