diff options
author | Peter Smith <peter.smith@linaro.org> | 2018-11-14 13:53:47 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2018-11-14 13:53:47 +0000 |
commit | ad51cee866f42f096fef13b15024cba741cd361d (patch) | |
tree | 52bf35bb6181e6942528adfd3ec3ab0a177bc0bb /lldb/packages/Python/lldbsuite/test/python_api/value/main.c | |
parent | 82318c6f14e1d227a244720651562d81b7c9b18d (diff) | |
download | bcm5719-llvm-ad51cee866f42f096fef13b15024cba741cd361d.tar.gz bcm5719-llvm-ad51cee866f42f096fef13b15024cba741cd361d.zip |
[AArch64] Fix resolution of R_PLT_PAGE RelExpr
The R_AARCH64_ADR_PREL_PG_HI21 relocation type is given the R_PAGE_PC
RelExpr. This can be transformed to R_PLT_PAGE_PC via toPlt().
Unfortunately the resolution is identical to R_PAGE_PC so instead of
getting the address of the PLT entry we get the address of the symbol
which may not be correct in the case of static ifuncs. The fix is to
handle the cases separately and use getPltVA() + A with R_PLT_PAGE_PC.
Differential Revision: https://reviews.llvm.org/D54474
llvm-svn: 346863
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value/main.c')
0 files changed, 0 insertions, 0 deletions