llvm/llvm/test/CodeGen/X86/tailjmp_gotpcrel_relax_relocation.ll

; RUN: llc -filetype=obj -x86-relax-relocations=true -mtriple=x86_64-linux-gnu -o - %s |  llvm-objdump - -d -r | FileCheck %s

; CHECK: jmpq *(%rip)
; CHECK-NEXT: R_X86_64_GOTPCRELX

define i32 @main() {
entry:
  %call = tail call i32 @foo()
  ret i32 %call
}

; Function Attrs: nonlazybind
declare i32 @foo() #1

attributes #1 = { nonlazybind }