1# REQUIRES: x86 2 3# RUN: mkdir -p %t 4# 5# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o 6# RUN: ld64.lld -o %t/test -Z -L%S/Inputs/MacOSX.sdk/usr/lib -lSystem %t/test.o 7# 8# RUN: llvm-objdump --bind --no-show-raw-insn -d -r %t/test | FileCheck %s 9 10# CHECK: Disassembly of section __TEXT,__text: 11# CHECK: movq {{.*}} # [[ADDR:[0-9a-f]+]] 12 13# CHECK: Bind table: 14# CHECK: __DATA __got 0x[[ADDR]] pointer 0 libSystem ___nan 15 16.section __TEXT,__text 17.global _main 18 19_main: 20 movq ___nan@GOTPCREL(%rip), %rax 21 ret 22