[PATCH] D21482: Support/ELF: Add R_AMDGPU_GOTPCREL relocation
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 19:57:22 PDT 2016
tstellarAMD added a comment.
In http://reviews.llvm.org/D21482#461432, @rafael wrote:
> git-clang-format the patch.
> Out of curiosity, why do you need a got? Are GPU fancy enough to have
> shared libraries and symbol preemption these days?
We only support generating shared libraries of GPU code. The shared libraries are loaded into memory, and then the CPU host code is essentially calling functions in the GPU libraries (not directly calling them directly, but using a GPU runtime library, like OpenCL, for example, to invoke the functions).
We don't support preemption, but we need to use a got for referencing external variables.
More information about the llvm-commits