diff options
author | Kevin Sala <kevin.sala@bsc.es> | 2022-11-23 22:15:14 +0100 |
---|---|---|
committer | Kevin Sala <kevin.sala@bsc.es> | 2022-12-03 21:51:09 +0100 |
commit | 4fde81679c78ef1956840e7689bc8415b72292f1 (patch) | |
tree | 22125809deddb6a8269b0f89043a70c133c14b42 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 9114ce4d1da94da82e1528cd0fa0500c14169c8e (diff) | |
download | llvm-4fde81679c78ef1956840e7689bc8415b72292f1.zip llvm-4fde81679c78ef1956840e7689bc8415b72292f1.tar.gz llvm-4fde81679c78ef1956840e7689bc8415b72292f1.tar.bz2 |
[OpenMP][libomptarget] Allow overriding function that gets ELF symbol info
The OpenMP target's NextGen plugins retrieve symbol information in the ELF image
(i.e., address and size) through the ELF section and ELF symbol objects. However,
the images of CUDA programs compute the address differently from the images of
AMDGPU programs:
- Address for CUDA symbols: image begin + section's offset + symbol's st_value
- Address for AMDGPU symbols: image + begin + symbol's st_value
Differential Revision: https://reviews.llvm.org/D138604
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions