brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · c62eb12 Raw
37 lines · plain
1# REQUIRES: x862# UNSUPPORTED: system-windows3# RUN: rm -rf %t; split-file %s %t4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o5# RUN: mkdir -p %t/Foo.framework/Versions/A6# RUN: %lld -dylib -install_name %t/Foo.framework/Versions/A/Foo %t/foo.o -o %t/Foo.framework/Versions/A/Foo7# RUN: %lld -dylib -install_name %t/Foo.framework/Versions/A/Foobar %t/foo.o -o %t/Foo.framework/Versions/A/Foobar8# RUN: ln -sf A %t/Foo.framework/Versions/Current9# RUN: ln -sf Versions/Current/Foo %t/Foo.framework/Foo10 11# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o12# RUN: %lld -lSystem -F%t -framework Foo %t/test.o -o %t/test13# RUN: llvm-objdump --macho --lazy-bind %t/test | FileCheck %s --check-prefix=NOSUFFIX14# NOSUFFIX: __DATA __la_symbol_ptr 0x{{[0-9a-f]*}} {{.*}}Foo _foo15 16# RUN: %lld -lSystem -F%t -framework Foo,baz %t/test.o -o %t/test-wrong-suffix17# RUN: llvm-objdump --macho --lazy-bind %t/test-wrong-suffix | FileCheck %s --check-prefix=NOSUFFIX18 19# RUN: %lld -lSystem -F%t -framework Foo,bar %t/test.o -o %t/test-suffix20# RUN: llvm-objdump --macho --lazy-bind %t/test-suffix | FileCheck %s --check-prefix=SUFFIX21# SUFFIX: __DATA __la_symbol_ptr 0x{{[0-9a-f]*}} {{.*}}Foobar _foo22 23#--- foo.s24.globl _foo25_foo:26  ret27 28#--- test.s29.globl _main30.text31_main:32  sub $8, %rsp # 16-byte-align the stack; dyld checks for this33  callq _foo34  mov $0, %rax35  add $8, %rsp36  ret37