forked from OSchip/llvm-project
static __global int Var = 0;
__global int* Ptr[] = {&Var};
...
In this case Var is a non premptable symbol and so its address can be used as the value of Ptr, with a base relative relocation that will add the delta between the ELF address and the actual load address. Such relocations do not require a symbol.
Differential Revision: https://reviews.llvm.org/D38909
llvm-svn: 315935
|
||
|---|---|---|
| .. | ||
| elf32-r600-definitions.yaml | ||
| elf32-unknown.yaml | ||
| elf64-amdgcn-amdhsa-definitions.yaml | ||
| elf64-amdgcn-amdpal-definitions.yaml | ||
| elf64-amdgcn-mesa3d-definitions.yaml | ||
| elf64-relocs.yaml | ||
| elf64-unknown.yaml | ||
| lit.local.cfg | ||
| objdump.s | ||