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