brintos

brintos / llvm-project-archived public Read only

0
0
Text · 913 B · a1706d1 Raw
29 lines · plain
1# REQUIRES: x862# RUN: mkdir -p %t3 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.o7# RUN: %lld -dylib -lc++ -sub_library libc++ \8# RUN:   %t/reexporter.o -o %t/libreexporter.dylib9# RUN: llvm-objdump --macho --all-headers %t/libreexporter.dylib | FileCheck %s --check-prefix=DYLIB-HEADERS10# DYLIB-HEADERS:     cmd     LC_REEXPORT_DYLIB11# DYLIB-HEADERS-NOT: Load command12# DYLIB-HEADERS:     name    /usr/lib/libc++.dylib13 14# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o15# RUN: %lld -o %t/test -lSystem -L%t -lreexporter %t/test.o16# RUN: llvm-objdump --bind --no-show-raw-insn -d %t/test | FileCheck %s17 18# CHECK:     Bind table:19# CHECK-DAG: __DATA __data {{.*}} pointer 0 libc++abi ___gxx_personality_v020 21.text22.globl _main23 24_main:25  ret26 27.data28  .quad ___gxx_personality_v029