blob: 07b7589be9753dbcaaad4ee17cacb65ed39c7405 [file] [log] [blame]
// 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;
}