forked from OSchip/llvm-project
[test] Replace `yaml2obj >` with `yaml2obj -o` and remove unneeded input redirection
This commit is contained in:
parent
dc693a036d
commit
b587ca93be
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main /align:32 %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link -safeseh:no /dll /noentry /debug %t.obj 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: ignoring section .debug$S with unrecognized magic 0x1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
# RUN: lld-link /entry:foo /subsystem:console \
|
||||
# RUN: /alternatename:foo=main /out:%t.exe %t.obj
|
||||
# RUN: lld-link /entry:foo /subsystem:console \
|
||||
|
@ -7,7 +7,7 @@
|
|||
# RUN: /alternatename:nosuchsym1=nosuchsym2 \
|
||||
# RUN: /out:%t.exe %t.obj
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:foo /subsystem:console /out:%t.exe %t.obj
|
||||
|
||||
--- !COFF
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj %s > %t1.obj
|
||||
# RUN: yaml2obj %s > %t2.obj
|
||||
# RUN: yaml2obj %s -o %t1.obj
|
||||
# RUN: yaml2obj %s -o %t2.obj
|
||||
# RUN: llvm-lib /out:%t.lib %t1.obj %t2.obj
|
||||
# RUN: lld-link /out:%t.exe /lldmap:%t.map /entry:main /subsystem:console %p/Inputs/ret42.obj %t.lib
|
||||
# RUN: FileCheck %s < %t.map
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: aarch64
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib /alternatename:__delayLoadHelper2=main /delayload:library.dll
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix DISASM
|
||||
# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s -check-prefix IMPORTS
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: aarch64
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib %p/Inputs/library2-arm64.lib
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: aarch64
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t.obj %p/Inputs/library-arm64.lib
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: arm
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: arm
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# RUN: yaml2obj < %p/Inputs/armnt-executable.obj.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/armnt-executable.obj.yaml -o %t.obj
|
||||
# RUN: not lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj /dynamicbase:no 2>&1 | FileCheck %s
|
||||
# CHECK: dynamicbase:no is not compatible with arm
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/armnt-executable.obj.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/armnt-executable.obj.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:mainCRTStartup /subsystem:console %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /subsystem:console %t.obj \
|
||||
# RUN: /entry:mainCRTStartup %p/Inputs/library.lib
|
||||
# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: arm
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /out:%t.exe /subsystem:console /entry:get_function %t.obj
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: arm
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /entry:get_buffer /subsystem:console /out:%t.exe %t.obj
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: arm
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: llvm-objdump -s %t.obj | FileCheck %s --check-prefix BEFORE
|
||||
# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
|
||||
# RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix AFTER
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link /include:symbol /dll /noentry /nodefaultlib %t.obj /out:%t.exe 2>&1 | FileCheck %s
|
||||
|
||||
# Tests an associative comdat being associated with an empty section errors.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT-HEADER %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
#
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/std64.lib
|
||||
# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck %s -check-prefix=BASEREL
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#variable:
|
||||
# .long 42
|
||||
|
||||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link -out:%t.exe -entry:main %t.obj 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: error: unexpected instruction in MOVT instruction in MOV32T relocation
|
||||
|
|
|
@ -8,15 +8,15 @@
|
|||
// > x86_64-w64-mingw32-windres combined-resources.res combined-resources.o
|
||||
// > cvtres -machine:x64 -out:combined-resources-2.o combined-resources.res
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj %p/Inputs/resource.res \
|
||||
# RUN: %p/Inputs/combined-resources.res %p/Inputs/combined-resources-2.res
|
||||
|
||||
# RUN: llvm-readobj --coff-resources --file-headers --section-data %t.exe | \
|
||||
# RUN: FileCheck %s
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/combined-resources.yaml > %t-combined-resources.o
|
||||
# RUN: yaml2obj < %p/Inputs/combined-resources-2.yaml > %t-combined-resources-2.o
|
||||
# RUN: yaml2obj %p/Inputs/combined-resources.yaml -o %t-combined-resources.o
|
||||
# RUN: yaml2obj %p/Inputs/combined-resources-2.yaml -o %t-combined-resources-2.o
|
||||
|
||||
# RUN: lld-link /lldmingw /out:%t-resobj.exe /entry:main %t.obj %p/Inputs/resource.res \
|
||||
# RUN: %t-combined-resources.o %t-combined-resources-2.o
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj
|
||||
# RUN: llvm-objdump -d %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj < %s > %t1.obj
|
||||
# RUN: yaml2obj < %s > %t2.obj
|
||||
# RUN: yaml2obj %s -o %t1.obj
|
||||
# RUN: yaml2obj %s -o %t2.obj
|
||||
# RUN: not lld-link /out:%t.exe %t1.obj %t2.obj >& %t.log
|
||||
# RUN: FileCheck %s < %t.log
|
||||
# RUN: not lld-link /out:%t.exe /demangle %t1.obj %t2.obj 2>&1 | FileCheck %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj < %s > %t1.obj
|
||||
# RUN: yaml2obj < %s > %t2.obj
|
||||
# RUN: yaml2obj %s -o %t1.obj
|
||||
# RUN: yaml2obj %s -o %t2.obj
|
||||
# RUN: not lld-link /out:%t.exe %t1.obj %t2.obj 2>&1 | FileCheck --check-prefix=OBJ %s
|
||||
|
||||
# RUN: llvm-as -o %t.lto1.obj %S/Inputs/conflict.ll
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.dll /entry:__ImageBase /dll %t.obj
|
||||
# RUN: llvm-readobj --sections --section-data %t.dll | FileCheck %s
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
# // using `clang-cl /c a.cpp | lld-link a.obj` works
|
||||
# // using `cl /c a.cpp | lld-link a.obj` fails without lld/COFF/Writer.cpp/Writer::sortSectionChunks()
|
||||
|
||||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_1.yaml > %t1.obj
|
||||
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_2.yaml > %t2.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_1.yaml -o %t1.obj
|
||||
# RUN: yaml2obj %S/Inputs/crt-dyn-initializer-order_2.yaml -o %t2.obj
|
||||
|
||||
# CHECK: Name: .CRT
|
||||
# CHECK: Characteristics [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
|
||||
# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
|
||||
# RUN: yaml2obj %p/Inputs/pdb1.yaml -o %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/pdb2.yaml -o %t2.obj
|
||||
|
||||
; If /DEBUG:FASTLINK is specified, /DEBUG:FULL is used instead
|
||||
# RUN: rm -f %t.pdb
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console %t.obj
|
||||
|
||||
--- !COFF
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# RUN: rm -rf %t
|
||||
# RUN: mkdir -p %t
|
||||
# RUN: cd %t
|
||||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > in.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o in.obj
|
||||
|
||||
# RUN: lld-link /entry:main in.obj
|
||||
# RUN: lld-link /entry:main /dll in.obj
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe %t.obj /entry:__ImageBase /subsystem:console
|
||||
# RUN: llvm-objdump -s %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
|
||||
# RUN: echo -e "LIBRARY foo\nEXPORTS ? @" > %t.def
|
||||
# RUN: not lld-link /def:%t.def %t.obj
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: arm
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link %t.obj %p/Inputs/library.lib /subsystem:console \
|
||||
# RUN: /entry:mainCRTStartup /alternatename:__delayLoadHelper2=mainCRTStartup \
|
||||
# RUN: /delayload:library.dll /out:%t.exe
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# RUN: mkdir -p %t.dir
|
||||
# RUN: yaml2obj < %p/Inputs/delayimports-error.yaml > %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/delayimports-error.yaml -o %t1.obj
|
||||
# RUN: lld-link /out:%t.dir/foo.dll /dll %t1.obj /export:datasym,DATA /noentry
|
||||
|
||||
# RUN: yaml2obj < %s > %t2.obj
|
||||
# RUN: yaml2obj %s -o %t2.obj
|
||||
# RUN: not lld-link /out:%t.exe /entry:main %t2.obj %t.dir/foo.lib /delayload:foo.dll \
|
||||
# RUN: /alternatename:__delayLoadHelper2=main /opt:noref >& %t.log
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
# RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
|
||||
# RUN: /entry:main@0 /alternatename:___delayLoadHelper2@8=_main@0 \
|
||||
# RUN: /delayload:std32.dll /out:%t.exe
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# RUN: yaml2obj %p/Inputs/delayimporttables-dll1.yaml > %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/delayimporttables-dll2.yaml > %t2.obj
|
||||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/delayimporttables-dll1.yaml -o %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/delayimporttables-dll2.yaml -o %t2.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /nodefaultlib /entry:DllMain /out:%T/delayimporttables-dll1.dll /dll /implib:%t-dll1.lib %t1.obj
|
||||
# RUN: lld-link /nodefaultlib /entry:DllMain /out:%T/delayimporttables-dll2.dll /dll /implib:%t-dll2.lib %t2.obj
|
||||
# RUN: lld-link /nodefaultlib /entry:main /out:%t.exe /delayload:delayimporttables-dll1.dll /delayload:delayimporttables-dll2.dll %t.obj %t-dll1.lib %t-dll2.lib
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 \
|
||||
# RUN: /export:mangled
|
||||
# RUN: llvm-objdump -p %t.dll | FileCheck --check-prefix=EXPORT %s
|
||||
|
@ -13,7 +13,7 @@ EXPORT-NEXT: 2 0x1010 exportfn2
|
|||
EXPORT-NEXT: 3 0x1010 exportfn3
|
||||
EXPORT-NEXT: 4 0x1010 mangled
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/export2.yaml > %t5.obj
|
||||
# RUN: yaml2obj %p/Inputs/export2.yaml -o %t5.obj
|
||||
# RUN: rm -f %t5.lib
|
||||
# RUN: llvm-ar cru %t5.lib %t5.obj
|
||||
# RUN: lld-link /out:%t5.dll /dll %t.obj %t5.lib /export:mangled2
|
||||
|
@ -40,7 +40,7 @@ EXPORT-LTO-NEXT: 3 0x1030 exportfn3
|
|||
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj /implib:%t2.lib \
|
||||
# RUN: /export:exportfn1 /export:exportfn2
|
||||
# RUN: yaml2obj < %p/Inputs/import.yaml > %t2.obj
|
||||
# RUN: yaml2obj %p/Inputs/import.yaml -o %t2.obj
|
||||
# RUN: lld-link /out:%t2.exe /entry:main %t2.obj %t2.lib
|
||||
# RUN: llvm-readobj --coff-imports %t2.exe | FileCheck -check-prefix=IMPORT %s
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t-lib.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t-lib.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t-lib.obj /implib:%t.lib /export:exportfn1
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/oldname.yaml > %t-oldname.obj
|
||||
# RUN: yaml2obj %p/Inputs/oldname.yaml -o %t-oldname.obj
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
|
||||
# RUN: lld-link /out:%t1.exe /entry:main %t.obj %t-oldname.obj %t.lib
|
||||
# RUN: llvm-readobj --coff-imports %t1.exe | FileCheck -check-prefix=REF %s
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: mkdir -p %t.dir
|
||||
# RUN: yaml2obj < %s > %t.dir/foo.obj
|
||||
# RUN: yaml2obj %s -o %t.dir/foo.obj
|
||||
|
||||
# RUN: rm -f %t.dir/foo.sys
|
||||
# RUN: cd %t.dir; lld-link /driver foo.obj
|
||||
|
|
|
@ -5,7 +5,7 @@ MISSING: 'nosuchfile.obj': {{[Nn]}}o such file or directory
|
|||
# RUN: lld-link --version | FileCheck -check-prefix=VERSION %s
|
||||
VERSION: {{LLD [0-9]+\.[0-9]+}}
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj
|
||||
# RUN: not lld-link /out:%t.exe %t.dll 2>&1 | FileCheck -check-prefix=BADFILE %s
|
||||
BADFILE: bad file type. Did you specify a DLL instead of an import library?
|
||||
|
@ -16,7 +16,7 @@ LIBHELP: OVERVIEW: LLVM Lib
|
|||
# RUN: not lld-link /WX /lib 2>&1 | FileCheck -check-prefix=LIBBAD %s
|
||||
LIBBAD: ignoring /lib since it's not the first argument
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
# RUN: not lld-link /out:/ %t.obj 2>&1 | FileCheck -check-prefix=DIR %s
|
||||
DIR: cannot open output file
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link -safeseh:no /subsystem:console /out:%t.exe %t.obj
|
||||
|
||||
--- !COFF
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link /out:%t.exe %t.obj /verbose > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link /out:%t.exe %t.obj /verbose > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
||||
# RUN: llvm-as -o %t.lto.obj %S/Inputs/entry-mangled.ll
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.lto.obj
|
||||
|
|
|
@ -23,7 +23,7 @@ _dataSym:
|
|||
# dllexport directive for some of the symbols. In this case, the dllexported
|
||||
# symbols are still exported.
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
#
|
||||
# RUN: lld-link -safeseh:no -out:%t.dll -dll %t.obj -lldmingw -exclude-all-symbols -output-def:%t.def
|
||||
# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=DLLEXPORT %s
|
||||
|
|
|
@ -40,7 +40,7 @@ __imp__unexported:
|
|||
# Test specifying -export-all-symbols, on an object file that contains
|
||||
# dllexport directive for some of the symbols.
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
#
|
||||
# RUN: lld-link -safeseh:no -out:%t.dll -dll %t.obj -lldmingw -export-all-symbols -output-def:%t.def
|
||||
# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix=CHECK2 %s
|
||||
|
@ -91,7 +91,7 @@ __imp__unexported:
|
|||
|
||||
# Test that we handle import libraries together with -opt:noref.
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
# RUN: lld-link -lldmingw -dll -out:%t.dll -entry:main@0 %t.obj -implib:%t.lib -opt:noref %p/Inputs/std32.lib -output-def:%t.def
|
||||
# RUN: echo "EOF" >> %t.def
|
||||
# RUN: cat %t.def | FileCheck -check-prefix=CHECK-IMPLIB %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: aarch64
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 /implib:%t.lib
|
||||
# RUN: llvm-objdump -p %t.dll | FileCheck %s
|
||||
# RUN: llvm-objdump -r %t.lib | FileCheck %s --check-prefix=RELOCS
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: arm
|
||||
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
#
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 /export:exportdata,data
|
||||
# RUN: llvm-objdump -p %t.dll | FileCheck %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
#
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2
|
||||
# RUN: llvm-objdump -p %t.dll | FileCheck --check-prefix=CHECK1 %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
#
|
||||
# RUN: lld-link -safeseh:no /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2
|
||||
# RUN: llvm-objdump -p %t.dll | FileCheck --check-prefix=CHECK1 %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT-HEADER %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Make sure input file type is detected by file magic and not by extension.
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.lib
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.lib
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.lib
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
#
|
||||
# RUN: lld-link -safeseh:no %t.obj /fixed %p/Inputs/std32.lib /subsystem:console \
|
||||
# RUN: /entry:main@0 /debug /out:%t.fixed.exe
|
||||
|
@ -10,7 +10,7 @@
|
|||
# RUN: /entry:main@0 /debug /out:%t.exe
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=EXEREL %s
|
||||
#
|
||||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
#
|
||||
# RUN: lld-link -safeseh:no %t.obj /dll /fixed /debug /out:%t.fixed.dll
|
||||
# RUN: llvm-readobj --file-headers %t.fixed.dll | FileCheck -check-prefix=DLLFIXED %s
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj < %s > %t1.obj
|
||||
# RUN: yaml2obj < %s > %t2.obj
|
||||
# RUN: yaml2obj %s -o %t1.obj
|
||||
# RUN: yaml2obj %s -o %t2.obj
|
||||
|
||||
# RUN: not lld-link /out:%t.exe /entry:main %t1.obj %t2.obj >& %t.log
|
||||
# RUN: FileCheck -check-prefix=ERROR %s < %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link /out:%t.exe /entry:main %t.obj >& %t.log
|
||||
# RUN: FileCheck -check-prefix=ERROR %s < %t.log
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj /force >& %t.log
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -triple x86_64-windows-msvc -filetype=obj -o %t.obj %s
|
||||
# RUN: yaml2obj < %p/Inputs/guardcf-align-foobar.yaml \
|
||||
# RUN: yaml2obj %p/Inputs/guardcf-align-foobar.yaml \
|
||||
# RUN: > %T/guardcf-align-foobar.obj
|
||||
# RUN: lld-link -out:%T/guardcf-align.exe -entry:main -guard:cf \
|
||||
# RUN: %t.obj %T/guardcf-align-foobar.obj
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# REQUIRES: x86
|
||||
|
||||
# Make a DLL that exports exportfn1.
|
||||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /implib:%t.lib
|
||||
|
||||
# Make an obj that takes the address of that exported function.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:main /out:%t.exe %t.obj
|
||||
|
||||
--- !COFF
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
# RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
|
||||
# RUN: /entry:main@0 /out:%t.exe /appcontainer
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=HEADER %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \
|
||||
# RUN: /debug /verbose %t.obj > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
|
||||
# RUN: /verbose %t.obj > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
|
||||
# RUN: /verbose %t.obj > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
|
||||
# RUN: /verbose %t.obj > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \
|
||||
# RUN: /verbose %t.obj > %t.log 2>&1
|
||||
# RUN: FileCheck %s < %t.log
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# COMDAT sections with non-external linkage should not be merged by ICF.
|
||||
|
||||
# RUN: yaml2obj < %s > %t1.obj
|
||||
# RUN: yaml2obj %s -o %t1.obj
|
||||
# RUN: sed s/foo/main/ %s | yaml2obj > %t2.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console /verbose \
|
||||
# RUN: %t1.obj %t2.obj > %t.log 2>&1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /opt:icf /entry:foo /out:%t.exe /subsystem:console /include:bar \
|
||||
# RUN: /verbose %t.obj > %t.log 2>&1
|
||||
# RUN: FileCheck -check-prefix=ICF %s < %t.log
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Tests /ignore with more than one argument.
|
||||
|
||||
RUN: yaml2obj %S/ignore4217.yaml > %t1.obj
|
||||
RUN: yaml2obj %S/Inputs/pdb-type-server-missing-2.yaml > %t2.obj
|
||||
RUN: yaml2obj %S/ignore4217.yaml -o %t1.obj
|
||||
RUN: yaml2obj %S/Inputs/pdb-type-server-missing-2.yaml -o %t2.obj
|
||||
RUN: echo foo > %t3.order
|
||||
|
||||
RUN: lld-link /entry:main /out:%t.exe %t1.obj %t2.obj /order:@%t3.order /debug 2>&1 | FileCheck -check-prefix=WARNINGS %s
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Tests that /ignore:4217 suppresses "locally defined symbol imported" warnings.
|
||||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
|
||||
# RUN: lld-link -entry:main -out:%t.exe %t.obj 2>&1 \
|
||||
# RUN: | FileCheck -check-prefix=WARNINGS %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /opt:noref /entry:main \
|
||||
# RUN: %t.obj %p/Inputs/imports-mangle.lib
|
||||
# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj /verbose >& %t.log
|
||||
### FileCheck doesn't like empty input, so write something.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# RUN: yaml2obj < %p/Inputs/include1a.yaml > %t1.obj
|
||||
# RUN: yaml2obj < %p/Inputs/include1b.yaml > %t2.obj
|
||||
# RUN: yaml2obj < %p/Inputs/include1c.yaml > %t3.obj
|
||||
# RUN: yaml2obj %p/Inputs/include1a.yaml -o %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/include1b.yaml -o %t2.obj
|
||||
# RUN: yaml2obj %p/Inputs/include1c.yaml -o %t3.obj
|
||||
# RUN: rm -f %t2.lib %t3.lib
|
||||
# RUN: llvm-ar cru %t2.lib %t2.obj
|
||||
# RUN: llvm-ar cru %t3.lib %t3.obj
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj < %s > %t.main.obj
|
||||
# RUN: yaml2obj < %p/Inputs/include1c.yaml > %t.lib.obj
|
||||
# RUN: yaml2obj %s -o %t.main.obj
|
||||
# RUN: yaml2obj %p/Inputs/include1c.yaml -o %t.lib.obj
|
||||
# RUN: rm -f %t.lib.lib
|
||||
# RUN: llvm-ar cru %t.lib.lib %t.lib.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main /includeoptional:bar /includeoptional:actuallymissing %t.main.obj %t.lib.lib /verbose >& %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link /out:%t.exe /entry:main /includeoptional:undeffunc %t.obj /verbose 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: error: undefined symbol: undeffunc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
|
||||
# RUN: lld-link -out:%t.dll -dll %t.obj 2>&1 \
|
||||
# RUN: | FileCheck -allow-empty -check-prefix=NOWARN %s
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Test that non-external symbols don't conflict
|
||||
|
||||
# RUN: yaml2obj < %s > %t1.obj
|
||||
# RUN: yaml2obj < %s > %t2.obj
|
||||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t3.obj
|
||||
# RUN: yaml2obj %s -o %t1.obj
|
||||
# RUN: yaml2obj %s -o %t2.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t3.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.obj %t3.obj
|
||||
|
||||
--- !COFF
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
|
||||
# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
|
||||
# RUN: yaml2obj %p/Inputs/pdb1.yaml -o %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/pdb2.yaml -o %t2.obj
|
||||
# RUN: lld-link /debug /debugtype:invalid /pdb:%t.pdb /dll /out:%t.dll \
|
||||
# RUN: /entry:main /nodefaultlib %t1.obj %t2.obj 2>&1 | FileCheck %s
|
||||
# CHECK: /debugtype: unknown option 'invalid'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
|
||||
# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
|
||||
# RUN: yaml2obj %p/Inputs/pdb1.yaml -o %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/pdb2.yaml -o %t2.obj
|
||||
# RUN: not lld-link /debug /debug:invalid /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib \
|
||||
# RUN: %t1.obj %t2.obj 2>&1 | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link %t.obj 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: getSectionName failed: #1:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: not lld-link %t.obj 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: foo should not refer to special section -10
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
# RUN: lld-link -safeseh:no %t.obj %p/Inputs/std32.lib /subsystem:console \
|
||||
# RUN: /entry:main@0 /out:%t.exe /largeaddressaware
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=HEADER %s
|
||||
|
|
|
@ -14,7 +14,7 @@ RUN: cat repro/response.txt | FileCheck -check-prefix=PDB %s
|
|||
PDB: -out:linkrepro-pdb.test.tmp.exe
|
||||
PDB-NEXT: -pdb:linkrepro-pdb.test.tmp.pdb
|
||||
|
||||
RUN: yaml2obj < %p/Inputs/export.yaml > %t1.obj
|
||||
RUN: yaml2obj %p/Inputs/export.yaml -o %t1.obj
|
||||
RUN: lld-link /out:%t1.dll /dll %t1.obj /implib:%t1.lib /export:exportfn1 /export:exportfn2 /linkrepro:.
|
||||
RUN: tar xf repro.tar
|
||||
RUN: cat repro/response.txt | FileCheck -check-prefix=IMP %s
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# RUN: rm -rf %t.dir
|
||||
# RUN: mkdir -p %t.dir/build1 %t.dir/build2 %t.dir/build3
|
||||
# RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/hello32.yaml -o %t.obj
|
||||
|
||||
# RUN: cd %t.dir/build1
|
||||
# RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe %t.obj /entry:main /subsystem:console
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link -safeseh:no /out:%t.exe %t.obj /entry:main /subsystem:console
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
||||
# RUN: llvm-objdump -s %t.exe | FileCheck %s
|
||||
# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj 2>&1 | FileCheck -check-prefix=WARN %s
|
||||
# RUN: llvm-objdump -s %t.exe | FileCheck %s
|
||||
# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link -safeseh:no /out:%t.exe /entry:main %t.obj
|
||||
# RUN: llvm-objdump -s %t.exe | FileCheck %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj 2>&1 | FileCheck %s --check-prefix=WARN
|
||||
# RUN: llvm-readobj --sections %t.exe | FileCheck %s
|
||||
# RUN: lld-link /debug /out:%t2.exe /entry:main %t.obj 2>&1 | FileCheck %s --check-prefix=WARN
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %p/Inputs/machine-x64.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/machine-x64.yaml -o %t.obj
|
||||
# RUN: lld-link -safeseh:no /entry:main /subsystem:console /out:%t.exe %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=AMD64 %s
|
||||
# RUN: lld-link -safeseh:no /entry:main /subsystem:console /machine:x64 \
|
||||
|
@ -7,7 +7,7 @@
|
|||
|
||||
AMD64: Machine: IMAGE_FILE_MACHINE_AMD64
|
||||
|
||||
# RUN: yaml2obj %p/Inputs/machine-x86.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/machine-x86.yaml -o %t.obj
|
||||
# RUN: lld-link -safeseh:no /entry:main /subsystem:console /out:%t.exe %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=I386 %s
|
||||
# RUN: lld-link -safeseh:no /entry:main /subsystem:console /machine:x86 \
|
||||
|
@ -16,12 +16,12 @@ AMD64: Machine: IMAGE_FILE_MACHINE_AMD64
|
|||
|
||||
I386: Machine: IMAGE_FILE_MACHINE_I386
|
||||
|
||||
# RUN: yaml2obj %p/Inputs/machine-x64.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/machine-x64.yaml -o %t.obj
|
||||
# RUN: not lld-link /entry:main /subsystem:console /machine:x86 \
|
||||
# RUN: /out:%t.exe %t.obj /fixed >& %t.log
|
||||
# RUN: FileCheck -check-prefix=INCOMPAT %s < %t.log
|
||||
|
||||
# RUN: yaml2obj %p/Inputs/machine-x86.yaml > %t1.obj
|
||||
# RUN: yaml2obj %p/Inputs/machine-x86.yaml -o %t1.obj
|
||||
# RUN: sed -e s/main/foo/ %p/Inputs/machine-x64.yaml | yaml2obj > %t2.obj
|
||||
# RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \
|
||||
# RUN: %t1.obj %t2.obj >& %t.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
|
||||
# RUN: rm -f %t.exe.manifest
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# UNSUPPORTED: manifest_tool
|
||||
# UNSUPPORTED: libxml2
|
||||
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
# RUN: not lld-link /out:%t.exe /entry:main \
|
||||
# RUN: /manifest:embed \
|
||||
# RUN: /manifestuac:"level='requireAdministrator'" \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# UNSUPPORTED: libxml2
|
||||
# REQUIRES: manifest_tool
|
||||
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main \
|
||||
# RUN: /manifest:embed \
|
||||
# RUN: /manifestuac:"level='requireAdministrator'" \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: manifest_tool
|
||||
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main \
|
||||
# RUN: /manifest:embed \
|
||||
# RUN: /manifestuac:"level='requireAdministrator'" \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t-dll.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t-dll.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t-dll.obj /implib:%t-dll.lib \
|
||||
# RUN: /export:exportfn1 /export:exportfn2
|
||||
# RUN: yaml2obj < %p/Inputs/map.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/map.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main %t.obj %t-dll.lib /map:%T/foo.map /lldmap
|
||||
# RUN: FileCheck -check-prefix=MAP -strict-whitespace %s < %T/foo.map
|
||||
# RUN: FileCheck -check-prefix=LLDMAP -strict-whitespace %s < %t.map
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.o
|
||||
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.o
|
||||
|
||||
# RUN: yaml2obj < %p/Inputs/manifest-lang0.yaml > %t-manifest-lang0.o
|
||||
# RUN: yaml2obj < %p/Inputs/manifest-lang1.yaml > %t-manifest-lang1.o
|
||||
# RUN: yaml2obj < %p/Inputs/manifest-lang2.yaml > %t-manifest-lang2.o
|
||||
# RUN: yaml2obj %p/Inputs/manifest-lang0.yaml -o %t-manifest-lang0.o
|
||||
# RUN: yaml2obj %p/Inputs/manifest-lang1.yaml -o %t-manifest-lang1.o
|
||||
# RUN: yaml2obj %p/Inputs/manifest-lang2.yaml -o %t-manifest-lang2.o
|
||||
|
||||
# RUN: lld-link /lldmingw /out:%t.exe /entry:main %t.o %p/Inputs/manifest-lang0.res %p/Inputs/manifest-lang1.res
|
||||
# RUN: llvm-readobj --coff-resources %t.exe | FileCheck %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %s > %t.obj
|
||||
# RUN: yaml2obj %s -o %t.obj
|
||||
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console /force \
|
||||
# RUN: /merge:.foo=.abc /merge:.bar=.def %t.obj /debug
|
||||
# RUN: llvm-readobj --sections %t.exe | FileCheck %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# REQUIRES: x86
|
||||
|
||||
# RUN: yaml2obj < %s > %t.o
|
||||
# RUN: yaml2obj %s -o %t.o
|
||||
|
||||
# Test that we get both the resource and the code from a single object
|
||||
# file that contains both, while merging resources from another object
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: rm -rf %t && mkdir %t
|
||||
# RUN: yaml2obj < %p/Inputs/no-ipi-stream-obj.obj.yaml > %t/no-ipi-stream-obj.obj
|
||||
# RUN: yaml2obj %p/Inputs/no-ipi-stream-obj.obj.yaml -o %t/no-ipi-stream-obj.obj
|
||||
# RUN: llvm-pdbutil yaml2pdb %p/Inputs/no-ipi-stream-pdb.pdb.yaml -pdb=%t/no-ipi-stream-pdb.pdb
|
||||
# RUN: lld-link -safeseh:no /dll /noentry /debug %t/no-ipi-stream-obj.obj
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
|
||||
# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
|
||||
# RUN: lld-link /out:%t.dll /dll %t.obj
|
||||
# RUN: llvm-readobj --file-headers %t.dll | FileCheck -check-prefix=ENTRY %s
|
||||
# RUN: lld-link /out:%t.dll /dll /noentry %t.obj
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue