brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 52e64d6 Raw
57 lines · plain
1# REQUIRES: aarch64, x862RUN: split-file %s %t.dir && cd %t.dir3 4RUN: llvm-lib -machine:arm64ec -out:libtest.a -def:test.def5RUN: llvm-mc -triple=arm64ec-windows-gnu arm64ec.s -filetype=obj -o arm64ec.obj6RUN: llvm-mc -triple=arm64ec-windows-gnu x86_64.s -filetype=obj -o x86_64.obj7 8RUN: lld-link -machine:arm64ec -out:out.dll -dll -noentry x86_64.obj arm64ec.obj libtest.a -lldmingw9 10RUN: llvm-readobj --coff-imports out.dll | FileCheck -check-prefix=IMPORTS %s11RUN: llvm-objdump -s out.dll | FileCheck --check-prefix=CONTENTS %s12 13IMPORTS:      Import {14IMPORTS-NEXT:   Name: test.dll15IMPORTS-NEXT:   ImportLookupTableRVA: 0x410016IMPORTS-NEXT:   ImportAddressTableRVA: 0x300017IMPORTS-NEXT:   Symbol: variable (0)18IMPORTS-NEXT: }19 20Runtime pseudo relocation list header at 0x401c, consisting of 0x0, 0x0, 0x1.21The first runtime pseudo relocation is from an x86_64 object file, with import22from 0x3000, applied at 0x7000 with a size of 64 bits. The second pseudo23relocation is from an ARM64EC object file, with import from 0x3000, applied24at 0x7008 with a size of 64 bits.25 26CONTENTS: Contents of section .rdata:27CONTENTS:  180004010 00200000 10200000 00200000 0000000028CONTENTS:  180004020 00000000 01000000 00300000 0070000029CONTENTS:  180004030 40000000 00300000 08700000 4000000030 31CONTENTS:      Contents of section .test:32CONTENTS-NEXT:  180007000 00300080 01000000 00300080 0100000033CONTENTS-NEXT:  180007010 1c400080 01000000 40400080 0100000034 35#--- arm64ec.s36    .text37    .global "#_pei386_runtime_relocator"38"#_pei386_runtime_relocator":39    ret40 41    .weak_anti_dep _pei386_runtime_relocator42.set _pei386_runtime_relocator,"#_pei386_runtime_relocator"43 44    .section .test,"dr"45    .quad variable46    .quad __RUNTIME_PSEUDO_RELOC_LIST__47    .quad __RUNTIME_PSEUDO_RELOC_LIST_END__48 49#--- x86_64.s50    .section .test,"dr"51    .quad variable52 53#--- test.def54LIBRARY test.dll55EXPORTS56    variable DATA57