1# REQUIRES: x86 2# RUN: mkdir -p %t 3 4## This test verifies that a non-TBD dylib can re-export a TBD library. 5 6# RUN: echo "" | llvm-mc -filetype=obj -triple=x86_64-apple-darwin -o %t/reexporter.o 7# RUN: %lld -dylib -lc++ -sub_library libc++ \ 8# RUN: %t/reexporter.o -o %t/libreexporter.dylib 9# RUN: llvm-objdump --macho --all-headers %t/libreexporter.dylib | FileCheck %s --check-prefix=DYLIB-HEADERS 10# DYLIB-HEADERS: cmd LC_REEXPORT_DYLIB 11# DYLIB-HEADERS-NOT: Load command 12# DYLIB-HEADERS: name /usr/lib/libc++.dylib 13 14# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o 15# RUN: %lld -o %t/test -lSystem -L%t -lreexporter %t/test.o 16# RUN: llvm-objdump --bind --no-show-raw-insn -d %t/test | FileCheck %s 17 18# CHECK: Bind table: 19# CHECK-DAG: __DATA __data {{.*}} pointer 0 libreexporter ___gxx_personality_v0 20 21.text 22.globl _main 23 24_main: 25 ret 26 27.data 28 .quad ___gxx_personality_v0 29