1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 3# RUN: %lld -o %t %t.o 4 5## Check that -rpath generates LC_RPATH. 6# RUN: %lld -o %t %t.o -rpath /some/rpath -rpath /another/rpath 7# RUN: llvm-objdump --macho --all-headers %t | FileCheck %s 8# CHECK: LC_RPATH 9# CHECK-NEXT: cmdsize 24 10# CHECK-NEXT: path /some/rpath 11# CHECK: LC_RPATH 12# CHECK-NEXT: cmdsize 32 13# CHECK-NEXT: path /another/rpath 14 15.text 16.global _main 17_main: 18 mov $0, %rax 19 ret 20