1# REQUIRES: x86 2 3## Check that we perform relaxation for GOT_LOAD relocations to defined symbols. 4## Note: GOT_LOAD relocations to dylib symbols are already tested in dylink.s. 5 6# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 7# RUN: %lld -o %t %t.o 8# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s 9# CHECK: leaq [[#]](%rip), %rax # {{.*}} <_foo> 10 11.globl _main, _foo 12 13_main: 14 movq _foo@GOTPCREL(%rip), %rax 15 ret 16 17_foo: 18 .space 0 19