Rafael Espindola | f8f01c3 | 2016-05-29 02:01:14 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations %s -mrelocation-model pic -o %t |
2 | // RUN: llvm-readobj -r %t | FileCheck %s | ||||
3 | |||||
4 | // CHECK: R_X86_64_REX_GOTPCRELX foo | ||||
5 | |||||
6 | extern int foo; | ||||
7 | int *f(void) { | ||||
8 | return &foo; | ||||
9 | } |