3 # RUN: rm -rf %t; split-file %s %t
5 # RUN: mkdir %t/subdir2
7 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/foo.s -o %t/foo.o
8 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/bar.s -o %t/bar.o
9 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/main.s -o %t/main.o
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 \
14 # RUN: -rpath @loader_path/../foo \
15 # RUN: -rpath @loader_path/../subdir \
16 # RUN: -rpath @loader_path/../foo \
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
33 .section __TEXT,__text