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
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
12.text
13.global _main
14_main:
15  mov $0, %rax
16  ret
17