1; RUN: llvm-as %s -o %t.o 2; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \ 3; RUN: --plugin-opt=save-temps \ 4; RUN: -shared %t.o -o %t.so 5; RUN: llvm-readobj -r %t.so.lto.o | FileCheck %s 6 7; Test that we produce R_X86_64_GOTPCREL instead of R_X86_64_GOTPCRELX 8; CHECK: R_X86_64_GOTPCREL foo 9 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 i32 14define i32 @bar() { 15 %t = load i32, i32* @foo 16 ret i32 %t 17} 18