| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | dead-strip-dylibs.s | 6 # RUN: %lld -dylib %t/bar.o -o %t/bar.dylib 7 # RUN: %lld -dylib %t/bar.o -o %t/libbar.dylib 8 # RUN: %lld -dylib -mark_dead_strippable_dylib %t/bar.o -o %t/bar-strip.dylib 11 # RUN: %lld -dylib %t/foo.o -o %t/foo_with_bar.dylib %t/bar.dylib -sub_library bar 12 # RUN: %lld -dylib %t/foo.o -o %t/foo.dylib 15 # RUN: %lld -dylib %t/weak-foo.o -o %t/weak-foo.dylib 22 # NOBAR-NOT: bar.dylib 24 # NOBAR-NOT: bar.dylib 26 # NOBAR-NOT: bar.dylib 33 # BAR: bar.dylib [all …]
|
| H A D | sub-library.s | 11 # RUN: %lld -dylib %t/libhello.o -o %t/libhello.dylib 15 # RUN: @executable_path/libsuper.dylib %t/libsuper.o -o %t/libsuper.dylib 21 # RUN: llvm-otool -hv %t/libhello.dylib | \ 32 # RUN: @executable_path/libsuper.dylib %t/libsuper.o -o %t/libsuper.dylib 35 # RUN: %lld -dylib -reexport_library %t/libgoodbye.dylib -install_name \ 36 # RUN: @executable_path/libsuper.dylib %t/libsuper.o -o %t/libsuper.dylib 58 # RUN: rm -f %t/libgoodbye.dylib 67 # RUN: %lld -dylib -o %t/libgoodbye2.dylib -sub_library Hello %t/Hello.framework/Hello %t/libgoodby… 72 # RUN: %lld -dylib -o %t/libgoodbye3.dylib -sub_umbrella Hello %t/Hello.framework/Hello %t/libgoodb… 76 # RUN: %lld -dylib -o %t/libgoodbye3.dylib -F %t -framework Hello -sub_umbrella Hello %t/libgoodbye… [all …]
|
| H A D | dyld-stub-binder.s | 8 # RUN: %lld -arch arm64 -dylib %t/foo.o -o %t/libfoo.dylib 9 # RUN: llvm-nm -m %t/libfoo.dylib | FileCheck --check-prefix=NOSTUB %s 14 # RUN: %lld -arch arm64 -lSystem -dylib %t/foo.o -o %t/libfoo.dylib 15 # RUN: llvm-nm -m %t/libfoo.dylib | FileCheck --check-prefix=STUB %s 19 # RUN: not %lld -arch arm64 -dylib %t/bar.o %t/libfoo.dylib \ 21 # RUN: %lld -arch arm64 -lSystem -dylib %t/bar.o %t/libfoo.dylib \ 22 # RUN: -o %t/libbar.dylib 26 # RUN: not %lld -arch arm64 %t/libfoo.dylib %t/libbar.dylib %t/test.o \ 28 # RUN: %lld -arch arm64 -lSystem %t/libfoo.dylib %t/libbar.dylib %t/test.o \ 33 # RUN: %lld -arch arm64 %t/libfoo.dylib %t/libbar.dylib %t/test.o \ [all …]
|
| H A D | zippered.yaml | 3 # RUN: yaml2obj %s > %t/test.dylib 8 ## Test linking against a zippered dylib. 9 # RUN: %lld -lSystem -dylib %t/test.dylib %t/test_macos.o -o /dev/null 10 …ibroot %S/Inputs/MacOSX.sdk -lSystem -dylib -arch x86_64 -platform_version mac-catalyst 13.15.0 14… 17 …-syslibroot %S/Inputs/MacOSX.sdk -lSystem -dylib -arch x86_64 -platform_version ios 13.15.0 14.0 %… 20 ## Test creating a zippered dylib. 21 …dylib -arch x86_64 -platform_version macos 12.0 13.0 -platform_version mac-catalyst 13.15.0 14.0 %… 41 …dylib -arch x86_64 -platform_version macos 10.8 13.0 -platform_version mac-catalyst 13.15.0 14.0 %… 58 # ZIPPERED-EXE: writing zippered outputs only valid for -dylib and -bundle 61 …dylib -arch x86_64 -platform_version macos 12.0 13.0 -platform_version mac-catalyst 13.15.0 14.0 %… [all …]
|
| H A D | final-output.s | 7 # RUN: %lld -dylib -o %t.dylib -final_output /lib/foo.dylib %t.o 8 # RUN: llvm-otool -D %t.dylib | FileCheck -DID=/lib/foo.dylib %s 10 # RUN: %lld -dylib -o %t.dylib -install_name /foo/bar.dylib \ 11 # RUN: -final_output /lib/foo.dylib %t.o 12 # RUN: llvm-otool -D %t.dylib | FileCheck -DID=/foo/bar.dylib %s
|
| H A D | application-extension.s | 10 # RUN: %lld -arch arm64 -dylib -o %t/foo.dylib %t/foo.o 12 # RUN: %lld -arch arm64 -dylib -o %t/foo-appext.dylib %t/foo.o \ 15 # RUN: %lld -arch arm64 -dylib -o %t/foo-noappext.dylib %t/foo.o \ 17 # RUN: llvm-otool -hv %t/foo-noappext.dylib \ 27 # RUN: %lld -arch arm64 -dylib -o %t/bar.dylib %t/bar.o \ 28 # RUN: -application_extension %t/foo-appext.dylib 29 # RUN: %lld -arch arm64 -dylib -o %t/bar.dylib %t/bar.o \ 31 # RUN: not %lld -arch arm64 -dylib -o %t/bar.dylib %t/bar.o \ 32 # RUN: -application_extension %t/foo-noappext.dylib \ 34 # RUN: not %lld -arch arm64 -dylib -o %t/bar.dylib %t/bar.o \ [all …]
|
| H A D | load-hidden.s | 10 # RUN: %lld -dylib -lSystem %t/obj.o -load_hidden %t/libfoo.a -o %t/test.dylib 11 # RUN: llvm-nm %t/test.dylib | FileCheck %s 12 # RUN: %lld -dylib -lSystem -L%t %t/obj.o -hidden-lfoo -o %t/test2.dylib 13 # RUN: llvm-nm %t/test2.dylib | FileCheck %s 19 # RUN: %lld -dylib -lSystem %t/obj.o %t/libfoo.a -load_hidden %t/libfoo.a -o %t/test-regular-then-h… 25 # RUN: %lld -dylib -lSystem %t/obj.o -load_hidden %t/libfoo.a %t/libfoo.a -o %t/test-hidden-then-re… 31 # RUN: %lld -dylib -lSystem %t/obj.o %t/libfoo.a -force_load %t/libbaz.a -load_hidden %t/libbaz.a -… 34 # RUN: %lld -dylib -lSystem %t/obj.o %t/libfoo.a -load_hidden %t/libbaz.a -force_load %t/libbaz.a -… 39 # RUN: %lld -dylib -lSystem %t/obj.o -load_hidden %t/libfoo.a -load_hidden %t/libbaz.a -o %t/test-l… 40 # RUN: llvm-nm %t/test-lazy.dylib | FileCheck %s --check-prefix=LAZY [all …]
|
| H A D | flat-namespace-dysyms.s | 5 # RUN: %lld -dylib -o %t/foo.dylib %t/foo.o 8 # RUN: %lld -lSystem -dylib -o %t/bar.dylib %t/bar.o %t/foo.dylib 11 # RUN: %lld -lSystem -dylib -o %t/baz.dylib %t/baz.o %t/bar.dylib 15 ## With flat_namespace, the linker automatically looks in foo.dylib and 16 ## bar.dylib too, but it doesn't add a LC_LOAD_DYLIB for it. 61 # REPRO: baz.dylib 62 # REPRO: bar.dylib 63 # REPRO: foo.dylib 65 ## ...but only baz.dylib should be in the response file: 66 # RESPONSE: baz.dylib [all …]
|
| H A D | weak-definition-direct-fetch.s | 12 # RUN: %lld -dylib -install_name \ 13 # RUN: @executable_path/libfoo.dylib %t/foo.o -o %t/libfoo.dylib 14 # RUN: %lld -dylib -install_name \ 15 # RUN: @executable_path/libweakfoo.dylib %t/weakfoo.o -o %t/libweakfoo.dylib 22 # RUN: llvm-strip %t/libfoo.dylib 23 # RUN: llvm-strip %t/libweakfoo.dylib 24 # RUN: llvm-nm %t/libfoo.dylib 2>&1 | FileCheck %s --check-prefix=NOSYM 40 ## dylib, or both from an archive, etc.) 62 ## (Weak) archive symbols take precedence over weak dylib symbols. 79 ## Weak defined symbols take precedence over weak dylib symbols. [all …]
|
| H A D | lto-weak-ref.ll | 5 ; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/dylib.s -o %t/dylib.o 6 ; RUN: %lld -dylib -lSystem %t/dylib.o -o %t/dylib.dylib 10 ; RUN: %lld -dylib -lSystem %t/obj.o %t/dylib.dylib -o %t/test.obj 16 ; RUN: %lld -dylib -lSystem %t/bitcode.o %t/dylib.dylib -o %t/test.lto 22 ;--- dylib.s
|
| H A D | link-search-at-loader-path.s | 10 # RUN: %lld -dylib -install_name @loader_path/libfoo.dylib %t/foo.o -o %t/subdir/libfoo.dylib 13 # RUN: %lld -dylib -reexport_library %t/subdir/libfoo.dylib -install_name /tmp/libbar.dylib %t/bar.… 15 # RUN: %lld -lSystem %t/main.o %t/subdir/libbar.dylib -o %t/test 16 # RUN: %lld -dylib -lSystem %t/main.o %t/subdir/libbar.dylib -o %t/libtest.dylib
|
| H A D | adhoc-codesign-hash.s | 8 # RUN: %lld -arch arm64 -dylib -adhoc_codesign -o %t/empty-arm64-macos.dylib %t/empty-arm64-macos.o 9 # RUN: %lld -arch arm64 -dylib -adhoc_codesign -o %t/empty-arm64-iossimulator.dylib %t/empty-arm64-… 10 # RUN: %lld -arch x86_64 -dylib -adhoc_codesign -o %t/empty-x86_64-macos.dylib %t/empty-x86_64-maco… 12 # RUN: obj2yaml %t/empty-arm64-macos.dylib | FileCheck %s -D#DATA_OFFSET=16400 -D#DATA_SIZE=304 13 # RUN: obj2yaml %t/empty-arm64-iossimulator.dylib | FileCheck %s -D#DATA_OFFSET=16400 -D#DATA_SIZE=… 14 # RUN: obj2yaml %t/empty-x86_64-macos.dylib | FileCheck %s -D#DATA_OFFSET=4112 -D#DATA_SIZE=208 21 # RUN: %python %p/Inputs/code-signature-check.py %t/empty-arm64-macos.dylib 16400 304 0 16400 22 # RUN: %python %p/Inputs/code-signature-check.py %t/empty-arm64-iossimulator.dylib 16400 304 0 16400 23 # RUN: %python %p/Inputs/code-signature-check.py %t/empty-x86_64-macos.dylib 4112 208 0 4112
|
| H A D | lc-dyld-exports-trie.yaml | 4 # RUN: yaml2obj %t/dylib.yaml -o %t/libdylib.dylib 5 # RUN: %lld -platform_version macos 12.0.0 12.0.0 -lSystem %t/obj.o %t/libdylib.dylib -o /dev/null 12 #--- dylib.yaml 13 ## This yaml is from a dylib produced by ld64 14 ## echo ".global _foo\n_foo" > dylib.s 15 …lang -target=x86_64-apple-macos12 -dynamiclib -isysroot Inputs/MacOSX.sdk dylib.s -o libdylib.dylib 16 ## obj2yaml --raw-segment=data libdylib.dylib 66 dylib: 71 Content: libdylib.dylib 124 dylib: [all …]
|
| H A D | link-search-at-rpath.s | 11 # RUN: %lld -dylib -install_name @rpath/libfoo.dylib %t/foo.o -o %t/subdir/libfoo.dylib 13 # RUN: %lld -dylib -reexport_library %t/subdir/libfoo.dylib \ 17 # RUN: %t/bar.o -o %t/subdir2/libbar.dylib 19 # RUN: %lld -lSystem %t/main.o %t/subdir2/libbar.dylib -o %t/test 20 # RUN: %lld -dylib -lSystem %t/main.o %t/subdir2/libbar.dylib -o %t/libtest.dylib
|
| H A D | weak-definition-gc.s | 12 # RUN: %lld -dylib -o %t/out.dylib %t/weak-sub.o %t/weak-sub.o 13 # RUN: llvm-otool -jtV %t/out.dylib | FileCheck --check-prefix=SUB %s 14 # RUN: %lld -dylib -o %t/out.dylib %t/weak-nosub.o %t/weak-sub.o 15 # RUN: llvm-otool -jtV %t/out.dylib | FileCheck --check-prefix=SUB %s 16 # RUN: %lld -dylib -o %t/out.dylib %t/weak-sub.o %t/weak-nosub.o 17 # RUN: llvm-otool -jtV %t/out.dylib | FileCheck --check-prefix=SUB %s 27 # RUN: %lld -dylib -o %t/out.dylib %t/weak-nosub.o %t/weak-nosub.o 28 # RUN: llvm-otool -jtV %t/out.dylib | FileCheck --check-prefix=SUB %s
|
| H A D | mh-header-link.s | 8 ## Test that in a dylib, we can link against __mh_dylib_header 11 # RUN: llvm-mc %t/dylib.s -triple=x86_64-apple-macos10.15 -filetype=obj -o %t/dylib.o 12 # RUN: %lld -dylib -dead_strip %t/dylib.o -o %t/dylib.out 13 # RUN: llvm-objdump -m --syms %t/dylib.out | FileCheck %s --check-prefix DYLIB 15 # RUN: not %lld -o /dev/null %t/dylib.o 2>&1 | FileCheck %s --check-prefix ERR-DYLIB 26 ## But it would be an error trying to reference __mh_execute_header in a dylib 27 # RUN: not %lld -o /dev/null -dylib %t/exec.o 2>&1 | FileCheck %s --check-prefix ERR-EXEC 39 #--- dylib.s
|
| H A D | eh-frame-dead-strip.s | 6 # RUN: %lld -dylib -dead_strip %t/strong_x86_64.o %t/weak_x86_64.o -o %t/libstrongweak_x86_64.dylib 7 # RUN: llvm-dwarfdump --eh-frame %t/libstrongweak_x86_64.dylib | FileCheck --check-prefixes CHECK,X… 8 # RUN: %lld -dylib -dead_strip %t/weak_x86_64.o %t/strong_x86_64.o -o %t/libweakstrong_x86_64.dylib 9 # RUN: llvm-dwarfdump --eh-frame %t/libweakstrong_x86_64.dylib | FileCheck --check-prefixes CHECK,X… 13 # RUN: %lld -arch arm64 -dylib -dead_strip %t/strong_arm64.o %t/weak_arm64.o -o %t/libstrongweak_ar… 14 # RUN: llvm-dwarfdump --eh-frame %t/libstrongweak_arm64.dylib | FileCheck --check-prefixes CHECK,AR… 15 # RUN: %lld -arch arm64 -dylib -dead_strip %t/weak_arm64.o %t/strong_arm64.o -o %t/libweakstrong_ar… 16 # RUN: llvm-dwarfdump --eh-frame %t/libweakstrong_arm64.dylib | FileCheck --check-prefixes CHECK,AR…
|
| H A D | special-symbol-ld-previous.s | 12 # RUN: %lld -o %t/libfoo1.dylib %t/libLDPreviousInstallName.tbd %t/ref_xxx.o -dylib -platform_versi… 13 # RUN: llvm-objdump --macho --dylibs-used %t/libfoo1.dylib | FileCheck --check-prefix=CASE1 %s 19 # RUN: %lld -o %t/libfoo2.dylib %t/libLDPreviousInstallName.tbd %t/ref_xxx.o -dylib -platform_versi… 20 # RUN: llvm-objdump --macho --dylibs-used %t/libfoo2.dylib | FileCheck --check-prefix=CASE2 %s 26 # RUN: %lld -o %t/libfoo3.dylib %t/libLDPreviousInstallName.tbd %t/ref_xxx.o -dylib -platform_versi… 27 # RUN: llvm-objdump --macho --dylibs-used %t/libfoo3.dylib | FileCheck --check-prefix=CASE3 %s 36 ## referenced, it refers to dylib /NewName if the deployment target is 39 # RUN: %lld -o %t/libfoo4_yes.dylib %t/libLDPreviousInstallName-Symbol.tbd %t/ref_ySyy.o -dylib -pl… 40 # RUN: llvm-otool -L %t/libfoo4_yes.dylib | FileCheck --check-prefix=CASE4-YES --implicit-check-not… 44 # RUN: %lld -o %t/libfoo4_no.dylib %t/libLDPreviousInstallName-Symbol.tbd %t/ref_ySyy.o -dylib -pla… [all …]
|
| H A D | dylib.s | 4 # RUN: %lld -dylib -install_name @executable_path/libfoo.dylib \ 5 # RUN: %t.o -o %t.dylib 6 # RUN: llvm-objdump --macho --dylib-id %t.dylib | FileCheck %s 7 # CHECK: @executable_path/libfoo.dylib 9 ## If we are building a dylib, we shouldn't error out even if we are passed
|
| H A D | link-search-order.s | 8 # RUN: %lld -dylib -install_name @executable_path/libhello.dylib %t/hello.o -o %t/libhello.dylib 11 # RUN: %lld -dylib -install_name @executable_path/libgoodbye.dylib %t/goodbye.o -o %tD/libgoodbye.d… 52 # RUN: not %lld -dylib -F %t -framework Foo -o %t --print-dylib-search \ 55 # DYLIB: @executable_path/libhello.dylib 56 # DYLIB: @executable_path/libgoodbye.dylib 57 # DYLIB: /usr/lib/libSystem.dylib 63 # DYLIBSEARCH: searched [[PATH]]{{[/\\]}}libhello.dylib, found 66 # ARCHIVE: @executable_path/libhello.dylib 67 # ARCHIVE-NOT: @executable_path/libgoodbye.dylib 68 # ARCHIVE: /usr/lib/libSystem.dylib [all …]
|
| /llvm-project-15.0.7/lldb/test/API/commands/expression/weak_symbols/ |
| H A D | Makefile | 5 all: a.out hidden/libdylib.dylib 7 a.out: libdylib.dylib 11 libdylib.dylib: dylib.c 13 C_SOURCES= DYLIB_C_SOURCES=dylib.c DYLIB_NAME=dylib \ 16 hidden/libdylib.dylib: 19 C_SOURCES= DYLIB_C_SOURCES=dylib.c DYLIB_NAME=dylib \
|
| /llvm-project-15.0.7/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/ |
| H A D | parser_text.test | 28 # CHECK: libc++.1.dylib 31 # CHECK: /usr/lib/libc++.1.dylib 52 # CHECK: MyFramework Plus.dylib 57 # CHECK: /tmp/MyFramework Plus.dylib 59 "0x1111111 - 0x2222222 MyFramework-dev.dylib (1.0.0svn - 1.0.0svn) <01234> /MyFramework-dev.dylib", 62 # CHECK: MyFramework-dev.dylib 67 # CHECK: /MyFramework-dev.dylib 69 "0x7fff63f20000 - 0x7fff63f77ff7 libc++.1.dylib (400.9.4) /usr/lib/libc++.1.dylib", 72 # CHECK: libc++.1.dylib 77 # CHECK: /usr/lib/libc++.1.dylib [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/MachO/ |
| H A D | install-name-tool-change.test | 7 # RUN: llvm-install-name-tool -change /usr/dylib/LOAD /usr/long/long/dylib/LOAD %t.copy 10 # CHANGE: name /usr/long/long/dylib/LOAD 11 # CHANGE: name /usr/dylib/WEAK 24 # RUN: llvm-install-name-tool -change /usr/dylib/LOAD /usr/LOAD \ 29 # CHANGE-REPEAT: name /usr/dylib/WEAK 38 # CHANGE-CHAIN: name /usr/dylib/WEAK 47 # CHANGE-SWITCH: name /usr/dylib/WEAK 94 dylib: 99 Content: '/usr/dylib/LOAD' 102 dylib: [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/lto/ |
| H A D | opt-level.ll | 2 ; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.… 3 ; RUN: llvm-nm --no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s 4 ; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.… 5 ; RUN: llvm-nm --no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/MachO/ |
| H A D | dylib.test | 3 USED: /usr/lib/foo1.dylib (compatibility version 0.0.0, current version 0.0.0) 4 USED: /usr/lib/foo2.dylib (compatibility version 0.0.0, current version 0.0.0, weak) 5 USED: /usr/lib/foo3.dylib (compatibility version 0.0.0, current version 0.0.0, reexport) 6 USED: /usr/lib/foo4.dylib (compatibility version 0.0.0, current version 0.0.0, lazy) 7 USED: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) 9 RUN: llvm-objdump --macho --dylib-id %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s --check-p… 11 ID: /usr/lib/foo.dylib 13 RUN: llvm-objdump --macho --dylib-id --no-leading-headers %p/Inputs/dylibLoadKinds.macho-x86_64 | F… 16 IDNOHEADERS: /usr/lib/foo.dylib
|