diff options
48 files changed, 115 insertions, 80 deletions
diff --git a/lld/test/mach-o/Inputs/libSystem.yaml b/lld/test/mach-o/Inputs/arm64/libSystem.yaml index 2a7f46381dc..ab954037480 100644 --- a/lld/test/mach-o/Inputs/libSystem.yaml +++ b/lld/test/mach-o/Inputs/arm64/libSystem.yaml @@ -3,7 +3,6 @@ # and therefore will need a dylib definition of dyld_stub_binder. # ---- shared-library-atoms: - name: dyld_stub_binder load-name: /usr/lib/libSystem.B.dylib diff --git a/lld/test/mach-o/Inputs/armv7/libSystem.yaml b/lld/test/mach-o/Inputs/armv7/libSystem.yaml new file mode 100644 index 00000000000..ab954037480 --- /dev/null +++ b/lld/test/mach-o/Inputs/armv7/libSystem.yaml @@ -0,0 +1,12 @@ +# +# For use by test cases that create dynamic output types which may needs stubs +# and therefore will need a dylib definition of dyld_stub_binder. +# + +shared-library-atoms: + - name: dyld_stub_binder + load-name: /usr/lib/libSystem.B.dylib + type: code + size: 0 + +... diff --git a/lld/test/mach-o/Inputs/x86/libSystem.yaml b/lld/test/mach-o/Inputs/x86/libSystem.yaml new file mode 100644 index 00000000000..ab954037480 --- /dev/null +++ b/lld/test/mach-o/Inputs/x86/libSystem.yaml @@ -0,0 +1,12 @@ +# +# For use by test cases that create dynamic output types which may needs stubs +# and therefore will need a dylib definition of dyld_stub_binder. +# + +shared-library-atoms: + - name: dyld_stub_binder + load-name: /usr/lib/libSystem.B.dylib + type: code + size: 0 + +... diff --git a/lld/test/mach-o/Inputs/x86_64/libSystem.yaml b/lld/test/mach-o/Inputs/x86_64/libSystem.yaml new file mode 100644 index 00000000000..ab954037480 --- /dev/null +++ b/lld/test/mach-o/Inputs/x86_64/libSystem.yaml @@ -0,0 +1,12 @@ +# +# For use by test cases that create dynamic output types which may needs stubs +# and therefore will need a dylib definition of dyld_stub_binder. +# + +shared-library-atoms: + - name: dyld_stub_binder + load-name: /usr/lib/libSystem.B.dylib + type: code + size: 0 + +... diff --git a/lld/test/mach-o/arm-interworking-movw.yaml b/lld/test/mach-o/arm-interworking-movw.yaml index 0423ed64457..b555112dde8 100644 --- a/lld/test/mach-o/arm-interworking-movw.yaml +++ b/lld/test/mach-o/arm-interworking-movw.yaml @@ -1,7 +1,7 @@ # REQUIRES: arm # RUN: lld -flavor darwin -arch armv7 -r -print_atoms %s -o %t | FileCheck %s # RUN: lld -flavor darwin -arch armv7 -dylib -print_atoms %t -o %t2 \ -# RUN: %p/Inputs/libSystem.yaml -sectalign __TEXT __text 0x1000 | FileCheck %s +# RUN: %p/Inputs/armv7/libSystem.yaml -sectalign __TEXT __text 0x1000 | FileCheck %s # RUN: llvm-objdump -d -macho -no-symbolic-operands %t2 | FileCheck -check-prefix=CODE %s # # Test thumb and arm branches round trip through -r. diff --git a/lld/test/mach-o/arm-interworking.yaml b/lld/test/mach-o/arm-interworking.yaml index 59c46050fab..3988a195845 100644 --- a/lld/test/mach-o/arm-interworking.yaml +++ b/lld/test/mach-o/arm-interworking.yaml @@ -1,7 +1,7 @@ # RUN: lld -flavor darwin -arch armv7 -r -print_atoms %s \ # RUN: %p/Inputs/arm-interworking.yaml -o %t | FileCheck %s \ # RUN: && lld -flavor darwin -arch armv7 -dylib -print_atoms \ -# RUN: %p/Inputs/libSystem.yaml %t -o %t2 | FileCheck %s \ +# RUN: %p/Inputs/armv7/libSystem.yaml %t -o %t2 | FileCheck %s \ # RUN: && llvm-readobj -s -sd %t2 | FileCheck -check-prefix=CODE %s # # Test thumb and arm branches round trip through -r. diff --git a/lld/test/mach-o/arm-shims.yaml b/lld/test/mach-o/arm-shims.yaml index 62739c967ab..1b54de4f05a 100644 --- a/lld/test/mach-o/arm-shims.yaml +++ b/lld/test/mach-o/arm-shims.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch armv7 %s %p/Inputs/arm-shims.yaml \ -# RUN: -dylib %p/Inputs/libSystem.yaml -o %t +# RUN: -dylib %p/Inputs/armv7/libSystem.yaml -o %t # RUN: llvm-readobj -s -sd %t | FileCheck %s # # Test b from arm to thumb or vice versa has shims added.s diff --git a/lld/test/mach-o/data-in-code-load-command.yaml b/lld/test/mach-o/data-in-code-load-command.yaml index 604592afcd3..0c84bd4d745 100644 --- a/lld/test/mach-o/data-in-code-load-command.yaml +++ b/lld/test/mach-o/data-in-code-load-command.yaml @@ -1,11 +1,11 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static -data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -no_data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static -data_in_code_info -no_data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -r && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -r -data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -r -no_data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -no_data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -data_in_code_info -no_data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -r && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -r -data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -r -no_data_in_code_info && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO --- !mach-o arch: x86_64 diff --git a/lld/test/mach-o/data-only-dylib.yaml b/lld/test/mach-o/data-only-dylib.yaml index 8d214304745..541e02f61ef 100644 --- a/lld/test/mach-o/data-only-dylib.yaml +++ b/lld/test/mach-o/data-only-dylib.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 -dylib %s -o %t %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 -dylib %s -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-nm %t | FileCheck %s # # Test that a data-only dylib can be built. diff --git a/lld/test/mach-o/dead-strip-globals.yaml b/lld/test/mach-o/dead-strip-globals.yaml index df5ff73aa44..6cb8164106e 100644 --- a/lld/test/mach-o/dead-strip-globals.yaml +++ b/lld/test/mach-o/dead-strip-globals.yaml @@ -1,6 +1,6 @@ -# RUN: lld -flavor darwin -arch x86_64 -dead_strip -export_dynamic %s -dylib %p/Inputs/libSystem.yaml -o %t.dylib -print_atoms | FileCheck -check-prefix=CHECK1 %s -# RUN: lld -flavor darwin -arch x86_64 -export_dynamic -dead_strip %s -dylib %p/Inputs/libSystem.yaml -o %t.dylib -print_atoms | FileCheck -check-prefix=CHECK1 %s -# RUN: lld -flavor darwin -arch x86_64 -dead_strip %s -dylib %p/Inputs/libSystem.yaml -o %t2.dylib -print_atoms | FileCheck -check-prefix=CHECK2 %s +# RUN: lld -flavor darwin -arch x86_64 -dead_strip -export_dynamic %s -dylib %p/Inputs/x86_64/libSystem.yaml -o %t.dylib -print_atoms | FileCheck -check-prefix=CHECK1 %s +# RUN: lld -flavor darwin -arch x86_64 -export_dynamic -dead_strip %s -dylib %p/Inputs/x86_64/libSystem.yaml -o %t.dylib -print_atoms | FileCheck -check-prefix=CHECK1 %s +# RUN: lld -flavor darwin -arch x86_64 -dead_strip %s -dylib %p/Inputs/x86_64/libSystem.yaml -o %t2.dylib -print_atoms | FileCheck -check-prefix=CHECK2 %s # # Test that -export_dynamic -dead-strip from removing globals. diff --git a/lld/test/mach-o/debug-syms.yaml b/lld/test/mach-o/debug-syms.yaml index 0365e3470c3..bd2eb5ce810 100644 --- a/lld/test/mach-o/debug-syms.yaml +++ b/lld/test/mach-o/debug-syms.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 -o %t %s -dylib %p/Inputs/libSystem.yaml && \ +# RUN: lld -flavor darwin -arch x86_64 -o %t %s -dylib %p/Inputs/x86_64/libSystem.yaml && \ # RUN: llvm-nm -no-sort -debug-syms %t | FileCheck %s # CHECK: 0000000000000000 - 00 0000 SO /Users/lhames/Projects/lld/lld-svn-tot/scratch/ diff --git a/lld/test/mach-o/demangle.yaml b/lld/test/mach-o/demangle.yaml index f8a76cddd29..333a59eaa52 100644 --- a/lld/test/mach-o/demangle.yaml +++ b/lld/test/mach-o/demangle.yaml @@ -1,11 +1,11 @@ # REQUIRES: system-linker-mach-o # # RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s \ -# RUN: -dylib -o %t %p/Inputs/libSystem.yaml 2> %t.err +# RUN: -dylib -o %t %p/Inputs/x86_64/libSystem.yaml 2> %t.err # RUN: FileCheck %s < %t.err # # RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s \ -# RUN: -dylib -o %t %p/Inputs/libSystem.yaml -demangle 2> %t.err2 +# RUN: -dylib -o %t %p/Inputs/x86_64/libSystem.yaml -demangle 2> %t.err2 # RUN: FileCheck %s --check-prefix=DCHECK < %t.err2 # # Test -demangle option works on undefined symbol errors. diff --git a/lld/test/mach-o/dso_handle.yaml b/lld/test/mach-o/dso_handle.yaml index 400e2c899c9..0796c2ee566 100644 --- a/lld/test/mach-o/dso_handle.yaml +++ b/lld/test/mach-o/dso_handle.yaml @@ -1,13 +1,13 @@ -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml -o %t1 +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml -o %t1 # RUN: llvm-nm -m -n %t1 | FileCheck %s # -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml -dead_strip -o %t2 +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml -dead_strip -o %t2 # RUN: llvm-nm -m -n %t2 | FileCheck %s # -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml -dylib -o %t3 +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml -dylib -o %t3 # RUN: llvm-nm -m -n %t3 | FileCheck %s # -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml -bundle -o %t4 +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml -bundle -o %t4 # RUN: llvm-nm -m -n %t4 | FileCheck %s # # Test that ___dso_handle symbol is available for executables, bundles, and dylibs diff --git a/lld/test/mach-o/dylib-install-names.yaml b/lld/test/mach-o/dylib-install-names.yaml index 845085be42a..a5a801cde68 100644 --- a/lld/test/mach-o/dylib-install-names.yaml +++ b/lld/test/mach-o/dylib-install-names.yaml @@ -1,25 +1,25 @@ # Check we accept -install_name correctly: # RUN: lld -flavor darwin -arch x86_64 -install_name libwibble.dylib -dylib \ # RUN: -compatibility_version 2.0 -current_version 5.3 \ -# RUN: %p/Inputs/libSystem.yaml %s -o %t.dylib +# RUN: %p/Inputs/x86_64/libSystem.yaml %s -o %t.dylib # RUN: llvm-objdump -private-headers %t.dylib | FileCheck %s --check-prefix=CHECK-BINARY-WRITE # Check we read LC_ID_DYLIB correctly: # RUN: lld -flavor darwin -arch x86_64 %p/Inputs/use-dylib-install-names.yaml \ -# RUN: %p/Inputs/libSystem.yaml %t.dylib -dylib -o %t2.dylib +# RUN: %p/Inputs/x86_64/libSystem.yaml %t.dylib -dylib -o %t2.dylib # RUN: llvm-objdump -private-headers %t2.dylib | FileCheck %s --check-prefix=CHECK-BINARY-READ # Check we default the install-name to the output file: # RUN: lld -flavor darwin -arch x86_64 -dylib %s -o libwibble.dylib \ # RUN: -compatibility_version 2.0 -current_version 5.3 \ -# RUN: %p/Inputs/libSystem.yaml +# RUN: %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -private-headers libwibble.dylib | FileCheck %s --check-prefix=CHECK-BINARY-WRITE # RUN: rm -f libwibble.dylib # Check -single_module does nothing # RUN: lld -flavor darwin -arch x86_64 -dylib %s -install_name libwibble.dylib \ # RUN: -compatibility_version 2.0 -current_version 5.3 \ -# RUN: -single_module -o %t2.dylib %p/Inputs/libSystem.yaml +# RUN: -single_module -o %t2.dylib %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -private-headers %t2.dylib | FileCheck %s --check-prefix=CHECK-BINARY-WRITE --- !mach-o diff --git a/lld/test/mach-o/exe-offsets.yaml b/lld/test/mach-o/exe-offsets.yaml index a751507432e..6a0e35cedb4 100644 --- a/lld/test/mach-o/exe-offsets.yaml +++ b/lld/test/mach-o/exe-offsets.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 %s -o %t -e start %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 %s -o %t -e start %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-readobj -sections %t | FileCheck %s # Make sure data gets put at offset diff --git a/lld/test/mach-o/exe-segment-overlap.yaml b/lld/test/mach-o/exe-segment-overlap.yaml index a416ee3ca73..47f0214efd6 100644 --- a/lld/test/mach-o/exe-segment-overlap.yaml +++ b/lld/test/mach-o/exe-segment-overlap.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 %s -o %t %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 %s -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-readobj -sections -section-data %t | FileCheck %s --- !native diff --git a/lld/test/mach-o/executable-exports.yaml b/lld/test/mach-o/executable-exports.yaml index b14e2d22929..0b8717eb724 100644 --- a/lld/test/mach-o/executable-exports.yaml +++ b/lld/test/mach-o/executable-exports.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 \ -# RUN: %s %p/Inputs/libSystem.yaml -o %t && \ +# RUN: %s %p/Inputs/x86_64/libSystem.yaml -o %t && \ # RUN: llvm-objdump -exports-trie %t | FileCheck %s # # diff --git a/lld/test/mach-o/exported_symbols_list-dylib.yaml b/lld/test/mach-o/exported_symbols_list-dylib.yaml index f52614038ca..f9de5fe976e 100644 --- a/lld/test/mach-o/exported_symbols_list-dylib.yaml +++ b/lld/test/mach-o/exported_symbols_list-dylib.yaml @@ -1,20 +1,20 @@ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -dylib \ -# RUN: %s %p/Inputs/libSystem.yaml -o %t \ +# RUN: %s %p/Inputs/x86_64/libSystem.yaml -o %t \ # RUN: -exported_symbols_list %p/Inputs/exported_symbols_list.exp && \ # RUN: llvm-nm -m %t | FileCheck %s # # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -dylib \ -# RUN: %s %p/Inputs/libSystem.yaml -o %t2 \ +# RUN: %s %p/Inputs/x86_64/libSystem.yaml -o %t2 \ # RUN: -exported_symbol _foo -exported_symbol _b && \ # RUN: llvm-nm -m %t2 | FileCheck %s # # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -dylib \ -# RUN: %s %p/Inputs/libSystem.yaml -o %t3 \ +# RUN: %s %p/Inputs/x86_64/libSystem.yaml -o %t3 \ # RUN: -unexported_symbol _bar -unexported_symbol _a && \ # RUN: llvm-nm -m %t3 | FileCheck %s # # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -dylib \ -# RUN: %s %p/Inputs/libSystem.yaml -dead_strip -o %t \ +# RUN: %s %p/Inputs/x86_64/libSystem.yaml -dead_strip -o %t \ # RUN: -exported_symbols_list %p/Inputs/exported_symbols_list.exp && \ # RUN: llvm-nm -m %t | FileCheck -check-prefix=CHECK_DEAD %s # diff --git a/lld/test/mach-o/exported_symbols_list-undef.yaml b/lld/test/mach-o/exported_symbols_list-undef.yaml index 1e2fc821c36..377282f2a7c 100644 --- a/lld/test/mach-o/exported_symbols_list-undef.yaml +++ b/lld/test/mach-o/exported_symbols_list-undef.yaml @@ -1,5 +1,5 @@ # RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -dylib \ -# RUN: %s %p/Inputs/libSystem.yaml -o %t -exported_symbol _foobar 2> %t2 +# RUN: %s %p/Inputs/x86_64/libSystem.yaml -o %t -exported_symbol _foobar 2> %t2 # # Test -exported_symbol fails if exported symbol not found. # diff --git a/lld/test/mach-o/fat-archive.yaml b/lld/test/mach-o/fat-archive.yaml index 86828d6a12b..979ede30a72 100644 --- a/lld/test/mach-o/fat-archive.yaml +++ b/lld/test/mach-o/fat-archive.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t \ -# RUN: -L %p/Inputs -lfoo %p/Inputs/libSystem.yaml +# RUN: -L %p/Inputs -lfoo %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-nm -m -n %t | FileCheck %s # # Test that fat archives are handled. diff --git a/lld/test/mach-o/flat_namespace_undef_error.yaml b/lld/test/mach-o/flat_namespace_undef_error.yaml index 904b9c776e5..af84608aa5f 100644 --- a/lld/test/mach-o/flat_namespace_undef_error.yaml +++ b/lld/test/mach-o/flat_namespace_undef_error.yaml @@ -1,4 +1,4 @@ -# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined error %s -o %t %p/Inputs/libSystem.yaml 2>&1 | FileCheck %s +# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined error %s -o %t %p/Inputs/x86_64/libSystem.yaml 2>&1 | FileCheck %s --- !native defined-atoms: diff --git a/lld/test/mach-o/flat_namespace_undef_suppress.yaml b/lld/test/mach-o/flat_namespace_undef_suppress.yaml index 5152a1cd985..e68fd998c1b 100644 --- a/lld/test/mach-o/flat_namespace_undef_suppress.yaml +++ b/lld/test/mach-o/flat_namespace_undef_suppress.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined suppress %s -o %t %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -flat_namespace -undefined suppress %s -o %t %p/Inputs/x86_64/libSystem.yaml # # Sanity check '-flat_namespace -undefined suppress'. # This should pass without error, even though '_bar' is undefined. diff --git a/lld/test/mach-o/force_load-dylib.yaml b/lld/test/mach-o/force_load-dylib.yaml index c8f559bedd7..d32c63eab5c 100644 --- a/lld/test/mach-o/force_load-dylib.yaml +++ b/lld/test/mach-o/force_load-dylib.yaml @@ -1,7 +1,7 @@ # RUN: lld -flavor darwin -arch x86_64 -dylib %p/Inputs/bar.yaml \ -# RUN: -install_name /usr/lib/libbar.dylib %p/Inputs/libSystem.yaml -o %t1.dylib +# RUN: -install_name /usr/lib/libbar.dylib %p/Inputs/x86_64/libSystem.yaml -o %t1.dylib # RUN: lld -flavor darwin -arch x86_64 -dylib %s -all_load %t1.dylib \ -# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/libSystem.yaml -o %t +# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/x86_64/libSystem.yaml -o %t # RUN: llvm-nm -m %t | FileCheck %s # # diff --git a/lld/test/mach-o/force_load-x86_64.yaml b/lld/test/mach-o/force_load-x86_64.yaml index 1be216ca3a7..5b37f4764e6 100644 --- a/lld/test/mach-o/force_load-x86_64.yaml +++ b/lld/test/mach-o/force_load-x86_64.yaml @@ -1,8 +1,8 @@ -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml \ +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml \ # RUN: %p/Inputs/libfoo.a %p/Inputs/libbar.a -o %t1 # RUN: llvm-nm -m -n %t1 | FileCheck %s # -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml \ +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml \ # RUN: -force_load %p/Inputs/libfoo.a %p/Inputs/libbar.a -o %t2 # RUN: llvm-nm -m -n %t2 | FileCheck --check-prefix=CHECKF %s # diff --git a/lld/test/mach-o/function-starts-load-command.yaml b/lld/test/mach-o/function-starts-load-command.yaml index 9f251898f6e..5cfe9dcac67 100644 --- a/lld/test/mach-o/function-starts-load-command.yaml +++ b/lld/test/mach-o/function-starts-load-command.yaml @@ -1,8 +1,8 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static -function_starts && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -no_function_starts && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static -function_starts -no_function_starts && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -function_starts && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -no_function_starts && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -function_starts -no_function_starts && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS --- !mach-o arch: x86_64 diff --git a/lld/test/mach-o/gcc_except_tab-got-arm64.yaml b/lld/test/mach-o/gcc_except_tab-got-arm64.yaml index 7d105ec1784..9645f41f2c6 100644 --- a/lld/test/mach-o/gcc_except_tab-got-arm64.yaml +++ b/lld/test/mach-o/gcc_except_tab-got-arm64.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch arm64 %s \ -# RUN: -dylib %p/Inputs/libSystem.yaml -o %t +# RUN: -dylib %p/Inputs/arm64/libSystem.yaml -o %t # RUN: llvm-objdump -section-headers %t | FileCheck %s # Make sure that the GOT relocation from gcc_except_tab to the data diff --git a/lld/test/mach-o/got-order.yaml b/lld/test/mach-o/got-order.yaml index b69877ecdc3..2e8579cad6d 100644 --- a/lld/test/mach-o/got-order.yaml +++ b/lld/test/mach-o/got-order.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/got-order.yaml \ -# RUN: %p/Inputs/got-order2.yaml -o %t %p/Inputs/libSystem.yaml +# RUN: %p/Inputs/got-order2.yaml -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -bind %t | FileCheck %s # # Test that GOT slots are sorted by name diff --git a/lld/test/mach-o/image-base.yaml b/lld/test/mach-o/image-base.yaml index d274621f8dd..aa78fea1c33 100644 --- a/lld/test/mach-o/image-base.yaml +++ b/lld/test/mach-o/image-base.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t -image_base 31415926000 %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t -image_base 31415926000 %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-readobj -macho-segment %t | FileCheck %s # RUN: not lld -flavor darwin -arch x86_64 -image_base 0x31415926530 %s >/dev/null 2> %t # RUN: FileCheck < %t %s --check-prefix=CHECK-ERROR-MISPAGED diff --git a/lld/test/mach-o/interposing-section.yaml b/lld/test/mach-o/interposing-section.yaml index 4f6bafc200f..ec4eaa3f70a 100644 --- a/lld/test/mach-o/interposing-section.yaml +++ b/lld/test/mach-o/interposing-section.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/interposing-section.yaml \ -# RUN: -dylib -o %t %p/Inputs/libSystem.yaml +# RUN: -dylib -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -private-headers %t | FileCheck %s # # RUN: lld -flavor darwin -arch x86_64 %s -r -o %t1 diff --git a/lld/test/mach-o/lazy-bind-x86_64.yaml b/lld/test/mach-o/lazy-bind-x86_64.yaml index ee3e2278b15..5c588c57195 100644 --- a/lld/test/mach-o/lazy-bind-x86_64.yaml +++ b/lld/test/mach-o/lazy-bind-x86_64.yaml @@ -3,7 +3,7 @@ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s \ # RUN: %p/Inputs/lazy-bind-x86_64.yaml %p/Inputs/lazy-bind-x86_64-2.yaml \ # RUN: %p/Inputs/lazy-bind-x86_64-3.yaml -o %t \ -# RUN: %p/Inputs/libSystem.yaml +# RUN: %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -lazy-bind %t | FileCheck %s # RUN: llvm-nm -m %t | FileCheck --check-prefix=CHECK-NM %s # RUN: llvm-objdump -disassemble %t | FileCheck --check-prefix=CHECK-HELPERS %s diff --git a/lld/test/mach-o/library-order.yaml b/lld/test/mach-o/library-order.yaml index f9cd5a6c44d..b53232dd398 100644 --- a/lld/test/mach-o/library-order.yaml +++ b/lld/test/mach-o/library-order.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 %p/Inputs/libfoo.a %s -o %t \ -# RUN: %p/Inputs/libSystem.yaml +# RUN: %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-nm -m -n %t | FileCheck %s # # Test that if library is before object file on command line, it still is used. diff --git a/lld/test/mach-o/library-rescan.yaml b/lld/test/mach-o/library-rescan.yaml index a8a0ca8968b..99c7b88c7e3 100644 --- a/lld/test/mach-o/library-rescan.yaml +++ b/lld/test/mach-o/library-rescan.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 %p/Inputs/libfoo.a %p/Inputs/libbar.a \ -# RUN: %s -o %t %p/Inputs/libSystem.yaml +# RUN: %s -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-nm -m -n %t | FileCheck %s # # Test that static libraries are automatically rescanned (bar needs foo). diff --git a/lld/test/mach-o/mh_bundle_header.yaml b/lld/test/mach-o/mh_bundle_header.yaml index e440141c568..d1b7d9ab214 100644 --- a/lld/test/mach-o/mh_bundle_header.yaml +++ b/lld/test/mach-o/mh_bundle_header.yaml @@ -1,5 +1,5 @@ -# RUN: lld -flavor darwin -arch x86_64 %s -bundle -o %t %p/Inputs/libSystem.yaml && llvm-nm -m -n %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 %s -bundle -dead_strip -o %t %p/Inputs/libSystem.yaml && llvm-nm -m -n %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 %s -bundle -o %t %p/Inputs/x86_64/libSystem.yaml && llvm-nm -m -n %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 %s -bundle -dead_strip -o %t %p/Inputs/x86_64/libSystem.yaml && llvm-nm -m -n %t | FileCheck %s # # Test that __mh_bundle_header symbol is available for bundles # diff --git a/lld/test/mach-o/mh_dylib_header.yaml b/lld/test/mach-o/mh_dylib_header.yaml index 96b67aacae2..8222063ee16 100644 --- a/lld/test/mach-o/mh_dylib_header.yaml +++ b/lld/test/mach-o/mh_dylib_header.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 %s -dylib -o %t %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 %s -dylib -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-nm -m -n %t | FileCheck %s # # Test that __mh_dylib_header symbol is available for dylibs diff --git a/lld/test/mach-o/objc_export_list.yaml b/lld/test/mach-o/objc_export_list.yaml index e67a4c7ece7..a2fcfa22ec0 100644 --- a/lld/test/mach-o/objc_export_list.yaml +++ b/lld/test/mach-o/objc_export_list.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 -dylib %s -o %t \ -# RUN: -exported_symbol .objc_class_name_Foo %p/Inputs/libSystem.yaml +# RUN: -exported_symbol .objc_class_name_Foo %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-nm -m %t | FileCheck %s # # Test that exported objc classes can be specificed using old naming diff --git a/lld/test/mach-o/order_file-basic.yaml b/lld/test/mach-o/order_file-basic.yaml index 3fea9be1560..f4d29fa1701 100644 --- a/lld/test/mach-o/order_file-basic.yaml +++ b/lld/test/mach-o/order_file-basic.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/libSystem.yaml \ +# RUN: lld -flavor darwin -arch x86_64 %s %p/Inputs/x86_64/libSystem.yaml \ # RUN: -order_file %p/Inputs/order_file-basic.order \ # RUN: -force_load %p/Inputs/libfoo.a -o %t # RUN: llvm-nm -m -n %t | FileCheck %s diff --git a/lld/test/mach-o/parse-data-in-code-armv7.yaml b/lld/test/mach-o/parse-data-in-code-armv7.yaml index 720f24d7b47..6c66f405ed6 100644 --- a/lld/test/mach-o/parse-data-in-code-armv7.yaml +++ b/lld/test/mach-o/parse-data-in-code-armv7.yaml @@ -1,6 +1,6 @@ # RUN: lld -flavor darwin -arch armv7 -r -print_atoms %s -o %t | FileCheck %s # RUN: lld -flavor darwin -arch armv7 -r -print_atoms %t -o %t2 | FileCheck %s -# RUN: lld -flavor darwin -arch armv7 -dylib %s -o %t3.dylib %p/Inputs/libSystem.yaml \ +# RUN: lld -flavor darwin -arch armv7 -dylib %s -o %t3.dylib %p/Inputs/x86_64/libSystem.yaml \ # RUN: && llvm-objdump -macho -private-headers %t3.dylib | FileCheck --check-prefix=CHECK2 %s # # Test parsing LC_DATA_IN_CODE diff --git a/lld/test/mach-o/rpath.yaml b/lld/test/mach-o/rpath.yaml index ce1234d4c78..63914938129 100644 --- a/lld/test/mach-o/rpath.yaml +++ b/lld/test/mach-o/rpath.yaml @@ -1,6 +1,6 @@ # Check we handle -rpath correctly: # RUN: lld -flavor darwin -arch x86_64 -rpath @loader_path/../Frameworks \ -# RUN: %p/Inputs/libSystem.yaml %s -o %t +# RUN: %p/Inputs/x86_64/libSystem.yaml %s -o %t # RUN: llvm-objdump -private-headers %t | FileCheck %s --check-prefix=CHECK-BINARY-WRITE --- !mach-o diff --git a/lld/test/mach-o/sectalign.yaml b/lld/test/mach-o/sectalign.yaml index 556fd52c96e..f0df9f9c548 100644 --- a/lld/test/mach-o/sectalign.yaml +++ b/lld/test/mach-o/sectalign.yaml @@ -1,6 +1,6 @@ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -dylib \ # RUN: -sectalign __DATA __custom 0x800 -sectalign __TEXT __text 0x400 \ -# RUN: %p/Inputs/libSystem.yaml -o %t \ +# RUN: %p/Inputs/x86_64/libSystem.yaml -o %t \ # RUN: && llvm-readobj -sections %t | FileCheck %s # # Test -sectalign option on __text and a custom section. diff --git a/lld/test/mach-o/sectattrs.yaml b/lld/test/mach-o/sectattrs.yaml index 800ba55d1b3..21113dcf828 100644 --- a/lld/test/mach-o/sectattrs.yaml +++ b/lld/test/mach-o/sectattrs.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -dylib \ -# RUN: %p/Inputs/libSystem.yaml -o %t \ +# RUN: %p/Inputs/x86_64/libSystem.yaml -o %t \ # RUN: && llvm-objdump -private-headers %t | FileCheck %s # diff --git a/lld/test/mach-o/source-version.yaml b/lld/test/mach-o/source-version.yaml index 169e9757135..4e0eaee394f 100644 --- a/lld/test/mach-o/source-version.yaml +++ b/lld/test/mach-o/source-version.yaml @@ -1,5 +1,5 @@ # RUN: not lld -flavor darwin -arch x86_64 -source_version 10.blah %s -o %t 2>&1 | FileCheck %s --check-prefix=ERROR -# RUN: lld -flavor darwin -arch x86_64 -source_version 10.1.2.3.4 %s -o %t -dylib %p/Inputs/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -source_version 10.1.2.3.4 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s --- !mach-o arch: x86_64 diff --git a/lld/test/mach-o/stack-size.yaml b/lld/test/mach-o/stack-size.yaml index 0e8edb2b549..048282c504e 100644 --- a/lld/test/mach-o/stack-size.yaml +++ b/lld/test/mach-o/stack-size.yaml @@ -1,6 +1,6 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -private-headers %t | FileCheck --check-prefix=CHECK-DEFAULT %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t -stack_size 31415926000 %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t -stack_size 31415926000 %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -private-headers %t | FileCheck --check-prefix=CHECK-EXPLICIT %s # RUN: not lld -flavor darwin -arch x86_64 -stack_size 0x31415926530 %s >/dev/null 2> %t # RUN: FileCheck < %t %s --check-prefix=CHECK-ERROR-MISPAGED diff --git a/lld/test/mach-o/twolevel_namespace_undef_dynamic_lookup.yaml b/lld/test/mach-o/twolevel_namespace_undef_dynamic_lookup.yaml index a39a3e7f8c1..b402ae3e17f 100644 --- a/lld/test/mach-o/twolevel_namespace_undef_dynamic_lookup.yaml +++ b/lld/test/mach-o/twolevel_namespace_undef_dynamic_lookup.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined dynamic_lookup %s -o %t %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined dynamic_lookup %s -o %t %p/Inputs/x86_64/libSystem.yaml # # Sanity check '-twolevel_namespace -undefined dynamic_lookup'. # This should pass without error, even though '_bar' is undefined. diff --git a/lld/test/mach-o/twolevel_namespace_undef_warning_suppress.yaml b/lld/test/mach-o/twolevel_namespace_undef_warning_suppress.yaml index eeb01de5f70..1ac704cdf95 100644 --- a/lld/test/mach-o/twolevel_namespace_undef_warning_suppress.yaml +++ b/lld/test/mach-o/twolevel_namespace_undef_warning_suppress.yaml @@ -1,6 +1,6 @@ -# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined warning %s -o %t %p/Inputs/libSystem.yaml 2>&1 | \ +# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined warning %s -o %t %p/Inputs/x86_64/libSystem.yaml 2>&1 | \ # RUN: FileCheck --check-prefix=CHECK-WARNING %s -# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined suppress %s -o %t %p/Inputs/libSystem.yaml 2>&1 | \ +# RUN: not lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 -twolevel_namespace -undefined suppress %s -o %t %p/Inputs/x86_64/libSystem.yaml 2>&1 | \ # RUN: FileCheck --check-prefix=CHECK-SUPPRESS %s --- !native diff --git a/lld/test/mach-o/unwind-info-simple-arm64.yaml b/lld/test/mach-o/unwind-info-simple-arm64.yaml index 2ef6dda8f3a..4caaf358263 100644 --- a/lld/test/mach-o/unwind-info-simple-arm64.yaml +++ b/lld/test/mach-o/unwind-info-simple-arm64.yaml @@ -1,5 +1,5 @@ # RUN: lld -flavor darwin -arch arm64 -o %t %s \ -# RUN: %p/Inputs/unwind-info-simple-arm64.yaml -e _main %p/Inputs/libSystem.yaml +# RUN: %p/Inputs/unwind-info-simple-arm64.yaml -e _main %p/Inputs/arm64/libSystem.yaml # RUN: llvm-objdump -unwind-info %t | FileCheck %s --- !mach-o diff --git a/lld/test/mach-o/unwind-info-simple-x86_64.yaml b/lld/test/mach-o/unwind-info-simple-x86_64.yaml index 7dfae1b7158..797c5a319d2 100644 --- a/lld/test/mach-o/unwind-info-simple-x86_64.yaml +++ b/lld/test/mach-o/unwind-info-simple-x86_64.yaml @@ -1,4 +1,4 @@ -# RUN: lld -flavor darwin -arch x86_64 %s -o %t -e _main %p/Inputs/libSystem.yaml +# RUN: lld -flavor darwin -arch x86_64 %s -o %t -e _main %p/Inputs/x86_64/libSystem.yaml # RUN: llvm-objdump -unwind-info %t | FileCheck %s # CHECK: Contents of __unwind_info section: diff --git a/lld/test/mach-o/upward-dylib-load-command.yaml b/lld/test/mach-o/upward-dylib-load-command.yaml index 1383ad75b0a..54e31f6960b 100644 --- a/lld/test/mach-o/upward-dylib-load-command.yaml +++ b/lld/test/mach-o/upward-dylib-load-command.yaml @@ -1,7 +1,7 @@ # RUN: lld -flavor darwin -arch x86_64 -dylib %p/Inputs/bar.yaml \ -# RUN: -install_name /usr/lib/libbar.dylib %p/Inputs/libSystem.yaml -o %t1.dylib +# RUN: -install_name /usr/lib/libbar.dylib %p/Inputs/x86_64/libSystem.yaml -o %t1.dylib # RUN: lld -flavor darwin -arch x86_64 -dylib %s -upward_library %t1.dylib \ -# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/libSystem.yaml -o %t +# RUN: -install_name /usr/lib/libfoo.dylib %p/Inputs/x86_64/libSystem.yaml -o %t # RUN: llvm-objdump -private-headers %t | FileCheck %s # # diff --git a/lld/test/mach-o/version-min-load-command.yaml b/lld/test/mach-o/version-min-load-command.yaml index aa378a71fcf..cb5331ec7f4 100644 --- a/lld/test/mach-o/version-min-load-command.yaml +++ b/lld/test/mach-o/version-min-load-command.yaml @@ -1,11 +1,11 @@ -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml 2>&1 | FileCheck %s --check-prefix=WARNING -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static -version_load_command && llvm-objdump -private-headers %t | FileCheck %s -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -no_version_load_command && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_VERSION_MIN -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static -version_load_command -no_version_load_command && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_VERSION_MIN -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/libSystem.yaml -static && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_VERSION_MIN +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml 2>&1 | FileCheck %s --check-prefix=WARNING +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -version_load_command && llvm-objdump -private-headers %t | FileCheck %s +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -no_version_load_command && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_VERSION_MIN +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -version_load_command -no_version_load_command && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_VERSION_MIN +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=NO_VERSION_MIN -# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 %s -o %t -dylib %p/Inputs/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=SDK_VERSION +# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s --check-prefix=SDK_VERSION --- !mach-o arch: x86_64 |