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.o | FileCheck %s
7 ; Test that we produce R_X86_64_GOTPCREL instead of R_X86_64_GOTPCRELX
8 ; CHECK: R_X86_64_GOTPCREL foo
10 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-unknown-linux-gnu"
13 @foo = external global i32
15 %t = load i32, i32* @foo