40 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t; split-file %s %t4# RUN: mkdir %t/subdir5# RUN: mkdir %t/subdir26 7# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/foo.s -o %t/foo.o8# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/bar.s -o %t/bar.o9# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/main.s -o %t/main.o10 11# RUN: %lld -dylib -install_name @rpath/libfoo.dylib %t/foo.o -o %t/subdir/libfoo.dylib12 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: --no-warn-duplicate-rpath \18# RUN: %t/bar.o -o %t/subdir2/libbar.dylib19 20# RUN: %lld -lSystem %t/main.o %t/subdir2/libbar.dylib -o %t/test21# RUN: %lld -dylib -lSystem %t/main.o %t/subdir2/libbar.dylib -o %t/libtest.dylib22 23#--- foo.s24.globl _foo25_foo:26 retq27 28#--- bar.s29.globl _bar30_bar:31 retq32 33#--- main.s34.section __TEXT,__text35.global _main36_main:37 callq _foo38 callq _bar39 ret40