18 lines · plain
1; RUN: llvm-as %s -o %t.o2; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \3; RUN: --plugin-opt=save-temps \4; RUN: -shared %t.o -o %t.so5; RUN: llvm-readobj -r %t.so.lto.o | FileCheck %s6 7; Test that we produce R_X86_64_GOTPCREL instead of R_X86_64_GOTPCRELX8; CHECK: R_X86_64_GOTPCREL foo9 10target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13@foo = external global i3214define i32 @bar() {15 %t = load i32, ptr @foo16 ret i32 %t17}18