33 lines · plain
1// REQUIRES: aarch642 3// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.arm64.obj4// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %s -o %t.arm64ec.obj5 6// RUN: lld-link -machine:arm64x -dll -noentry %t.arm64.obj %t.arm64ec.obj -out:%t.dll 2>&1 | FileCheck --check-prefix=WARN %s7// WARN: lld-link: warning: {{.*}}.arm64.obj: locally defined symbol imported: func (native symbol)8// WARN-NEXT: lld-link: warning: {{.*}}.arm64ec.obj: locally defined symbol imported: func (EC symbol)9 10// RUN: llvm-readobj --hex-dump=.test %t.dll | FileCheck --check-prefix=TEST %s11// TEST: 0x180005000 00300000 0830000012 13// RUN: llvm-readobj --coff-basereloc %t.dll | FileCheck --check-prefix=RELOCS %s14// RELOCS: Entry {15// RELOCS-NEXT: Type: DIR6416// RELOCS-NEXT: Address: 0x300017// RELOCS-NEXT: }18// RELOCS-NEXT: Entry {19// RELOCS-NEXT: Type: DIR6420// RELOCS-NEXT: Address: 0x300821// RELOCS-NEXT: }22 23// RUN: llvm-readobj --hex-dump=.rdata %t.dll | FileCheck --check-prefix=RDATA %s24// RDATA: 0x180003000 00100080 01000000 00200080 0100000025 26 .text27 .globl func28func:29 ret30 31 .section .test, "r"32 .rva __imp_func33