// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations %s -mrelocation-model pic -o %t
// RUN: llvm-readobj -r %t | FileCheck  %s

// CHECK: R_X86_64_REX_GOTPCRELX foo

extern int foo;
int *f(void) {
  return &foo;
}

// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations %s -mrelocation-model pic -o %t
// RUN: llvm-readobj -r %t | FileCheck  %s

// CHECK: R_X86_64_REX_GOTPCRELX foo

extern int foo;
int *f(void) {
  return &foo;
}

Mark test as requiring x86-registered-target.
Mark test as requiring x86-registered-target.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@271163 91177308-0d34-0410-b5e6-96231b3b80d8
