19 lines · plain
1# REQUIRES: x862 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.o7# RUN: %lld -o %t %t.o8# RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t | FileCheck %s9# CHECK: leaq [[#]](%rip), %rax ## {{.*}} <_foo>10 11.globl _main, _foo12 13_main:14 movq _foo@GOTPCREL(%rip), %rax15 ret16 17_foo:18 .space 019