Home | History | Annotate | Download | only in X86
      1 ; RUN: llvm-as %s -o %t.o
      2 ; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
      3 ; RUN:    --plugin-opt=save-temps \
      4 ; RUN:    -shared %t.o -o %t.so
      5 ; RUN: llvm-readobj -r %t.so.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 
     10 target triple = "x86_64-unknown-linux-gnu"
     11 
     12 @foo = external global i32
     13 define i32 @bar() {
     14   %t = load i32, i32* @foo
     15   ret i32 %t
     16 }
     17