File tree Expand file tree Collapse file tree 4 files changed +23
-19
lines changed
Expand file tree Collapse file tree 4 files changed +23
-19
lines changed Original file line number Diff line number Diff line change 1+ # RUN: mkdir -p %t.dir
12# RUN: yaml2obj %p/Inputs/export.yaml -o %t-dll.obj
23# RUN: lld-link /out:%t.dll /dll %t-dll.obj /implib:%t-dll.lib \
34# RUN: /export:exportfn1 /export:exportfn2
45# RUN: yaml2obj %p/Inputs/map.yaml -o %t.obj
5- # RUN: lld-link /out:%t.exe /entry:main %t.obj %t-dll.lib /map:%T /foo.map /lldmap
6- # RUN: FileCheck -check-prefix=MAP -strict-whitespace %s < %T /foo.map
6+ # RUN: lld-link /out:%t.exe /entry:main %t.obj %t-dll.lib /map:%t.dir /foo.map /lldmap
7+ # RUN: FileCheck -check-prefix=MAP -strict-whitespace %s < %t.dir /foo.map
78# RUN: FileCheck -check-prefix=LLDMAP -strict-whitespace %s < %t.map
8- # RUN: lld-link /out:%t.exe /entry:main %t.obj %t-dll.lib /map /lldmap:%T /foo-lld.map
9+ # RUN: lld-link /out:%t.exe /entry:main %t.obj %t-dll.lib /map /lldmap:%t.dir /foo-lld.map
910# RUN: FileCheck -check-prefix=MAP -strict-whitespace %s < %t.map
10- # RUN: FileCheck -check-prefix=LLDMAP -strict-whitespace %s < %T /foo-lld.map
11+ # RUN: FileCheck -check-prefix=LLDMAP -strict-whitespace %s < %t.dir /foo-lld.map
1112# RUN: lld-link /out:%t.dll /dll %t-dll.obj /export:exportfn1 \
1213# RUN: /export:foo=exportfn2 /map /mapinfo:exports
1314# RUN: FileCheck -check-prefix=MAPINFO -strict-whitespace %s < %t.map
Original file line number Diff line number Diff line change 11# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
22
3- # RUN: mkdir -p %T /out/tmp
4- # RUN: cp %t.obj %T /out/out1.obj
5- # RUN: cp %t.obj %T /out/tmp/out2
6- # RUN: cp %t.obj %T /out/tmp/out3.xyz
7- # RUN: lld-link /lib %t.obj /out:%T /out/out4.lib
3+ # RUN: mkdir -p %t.dir /out/tmp
4+ # RUN: cp %t.obj %t.dir /out/out1.obj
5+ # RUN: cp %t.obj %t.dir /out/tmp/out2
6+ # RUN: cp %t.obj %t.dir /out/tmp/out3.xyz
7+ # RUN: lld-link /lib %t.obj /out:%t.dir /out/out4.lib
88
99# RUN: rm -f out1.exe out2.exe out3.exe out3.dll out4.exe
10- # RUN: lld-link /entry:main %T /out/out1.obj
11- # RUN: lld-link /entry:main %T /out/tmp/out2
12- # RUN: lld-link /dll /entry:main %T /out/tmp/out3.xyz
13- # RUN: lld-link /entry:main -wholearchive:%T /out/out4.lib
10+ # RUN: lld-link /entry:main %t.dir /out/out1.obj
11+ # RUN: lld-link /entry:main %t.dir /out/tmp/out2
12+ # RUN: lld-link /dll /entry:main %t.dir /out/tmp/out3.xyz
13+ # RUN: lld-link /entry:main -wholearchive:%t.dir /out/out4.lib
1414
1515# RUN: llvm-readobj out1.exe | FileCheck %s
1616# RUN: llvm-readobj out2.exe | FileCheck %s
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ WARNING-NOT: warning
4040
4141Check that a PCH with wrong signature, but with right LF_PRECOMP records count, works.
4242
43+ RUN: mkdir -p %t.dir
4344RUN: sed '16,19s/Signature: *545589255/Signature: 123456789/' < %t.precomp.yaml > precomp-wrong-sig.yaml
44- RUN: yaml2obj precomp-wrong-sig.yaml -o %T /precomp.obj
45- RUN: env LLD_IN_TEST=1 lld-link %T /precomp.obj %S/Inputs/precomp-a.obj %S/Inputs/precomp-b.obj /nodefaultlib /entry:main /debug:noghash /pdb:%t.pdb /out:%t.exe 2>&1 | FileCheck %s -check-prefix WARNING --allow-empty
46- RUN: env LLD_IN_TEST=1 lld-link %T /precomp.obj %S/Inputs/precomp-a.obj %S/Inputs/precomp-b.obj /nodefaultlib /entry:main /debug:ghash /pdb:%t.pdb /out:%t.exe 2>&1 | FileCheck %s -check-prefix WARNING --allow-empty
45+ RUN: yaml2obj precomp-wrong-sig.yaml -o %t.dir /precomp.obj
46+ RUN: env LLD_IN_TEST=1 lld-link %t.dir /precomp.obj %S/Inputs/precomp-a.obj %S/Inputs/precomp-b.obj /nodefaultlib /entry:main /debug:noghash /pdb:%t.pdb /out:%t.exe 2>&1 | FileCheck %s -check-prefix WARNING --allow-empty
47+ RUN: env LLD_IN_TEST=1 lld-link %t.dir /precomp.obj %S/Inputs/precomp-a.obj %S/Inputs/precomp-b.obj /nodefaultlib /entry:main /debug:ghash /pdb:%t.pdb /out:%t.exe 2>&1 | FileCheck %s -check-prefix WARNING --allow-empty
4748
4849Check that two PCH objs with duplicate signatures are an error.
4950
Original file line number Diff line number Diff line change 44; then when merging the category into the base class (and deleting the category), we don't
55; delete the 'MyTestProtocol' name
66
7- ; RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos -o %T/erase-objc-name.o %s
8- ; RUN: %lld -no_objc_relative_method_lists -arch arm64 -dylib -o %T/erase-objc-name.dylib %T/erase-objc-name.o -objc_category_merging
9- ; RUN: llvm-objdump --objc-meta-data --macho %T/erase-objc-name.dylib | FileCheck %s --check-prefixes=MERGE_CATS
7+ ; RUN: mkdir -p %t.dir
8+
9+ ; RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos -o %t.dir/erase-objc-name.o %s
10+ ; RUN: %lld -no_objc_relative_method_lists -arch arm64 -dylib -o %t.dir/erase-objc-name.dylib %t.dir/erase-objc-name.o -objc_category_merging
11+ ; RUN: llvm-objdump --objc-meta-data --macho %t.dir/erase-objc-name.dylib | FileCheck %s --check-prefixes=MERGE_CATS
1012
1113; === Check merge categories enabled ===
1214; Check that the original categories are not there
You can’t perform that action at this time.
0 commit comments