blob: dc998889a47c1a6fac1fd11944fb416f284ed7f1 [file] [log] [blame]
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: %lld -o %t %t.o
## Check that -rpath generates LC_RPATH.
# RUN: %lld -o %t %t.o -rpath /some/rpath
# RUN: llvm-objdump --macho --all-headers %t | FileCheck %s
# CHECK: LC_RPATH
# CHECK-NEXT: cmdsize 24
# CHECK-NEXT: path /some/rpath
.text
.global _main
_main:
mov $0, %rax
ret