brintos

brintos / llvm-project-archived public Read only

0
0
Text · 924 B · 96ed266 Raw
35 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t; split-file %s %t4# RUN: mkdir %t/subdir5 6# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/foo.s -o %t/foo.o7# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/bar.s -o %t/bar.o8# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/main.s -o %t/main.o9 10# RUN: %lld -dylib -install_name @loader_path/libfoo.dylib %t/foo.o -o %t/subdir/libfoo.dylib11 12## Test that @loader_path is replaced by the actual path, not by install_name.13# RUN: %lld -dylib -reexport_library %t/subdir/libfoo.dylib -install_name /tmp/libbar.dylib %t/bar.o -o %t/subdir/libbar.dylib14 15# RUN: %lld -lSystem %t/main.o %t/subdir/libbar.dylib -o %t/test16# RUN: %lld -dylib -lSystem %t/main.o %t/subdir/libbar.dylib -o %t/libtest.dylib17 18#--- foo.s19.globl _foo20_foo:21  retq22 23#--- bar.s24.globl _bar25_bar:26  retq27 28#--- main.s29.section __TEXT,__text30.global _main31_main:32  callq _foo33  callq _bar34  ret35