1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 3 4# RUN: %lld %t.o -o %t 5# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s 6# CHECK: leaq {{.*}} # 100000000 7# CHECK-NEXT: leaq {{.*}} # 100000000 8 9# RUN: %lld -dylib %t.o -o %t.dylib 10# RUN: llvm-objdump -d --no-show-raw-insn %t.dylib | FileCheck %s --check-prefix=DYLIB-CHECK 11# DYLIB-CHECK: leaq {{.*}} # 0 12# DYLIB-CHECK-NEXT: leaq {{.*}} # 0 13 14.globl _main 15.text 16_main: 17 leaq ___dso_handle(%rip), %rdx 18 movq ___dso_handle@GOTPCREL(%rip), %rdx 19 ret 20