diff options
author | Tony Tye <Tony.Tye@amd.com> | 2017-10-16 20:44:29 +0000 |
---|---|---|
committer | Tony Tye <Tony.Tye@amd.com> | 2017-10-16 20:44:29 +0000 |
commit | d288430c3e8597c5eb74ab6fe9ee6f4ef75b1723 (patch) | |
tree | 79707b24ef4e29d1dade7244035019508ae5218b /llvm/lib/Fuzzer | |
parent | 038f4ea367c577052d9332ff01d2794bdd9cfb6a (diff) | |
download | bcm5719-llvm-d288430c3e8597c5eb74ab6fe9ee6f4ef75b1723.tar.gz bcm5719-llvm-d288430c3e8597c5eb74ab6fe9ee6f4ef75b1723.zip |
Add base relative relocation record that can be used for the following case (OpenCL example):
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
Diffstat (limited to 'llvm/lib/Fuzzer')
0 files changed, 0 insertions, 0 deletions