diff options
author | Peter Smith <peter.smith@linaro.org> | 2019-02-06 10:03:05 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2019-02-06 10:03:05 +0000 |
commit | aa192bb77660930531b5ecfc80c131fb3e179850 (patch) | |
tree | f73e533f12d74c53dca606ea438f573691145dfa /lldb/packages/Python/lldbsuite/test/lang/cpp/scope/main.cpp | |
parent | ac6d2e1b1651d87391c0ec1fca29d0ec7deda7c2 (diff) | |
download | bcm5719-llvm-aa192bb77660930531b5ecfc80c131fb3e179850.tar.gz bcm5719-llvm-aa192bb77660930531b5ecfc80c131fb3e179850.zip |
[ELF][ARM] Add test case that will fail if toPlt() is removed [NFC]
When a thunk is created to a PLT entry, the call to the thunk is converted
to a non-plt expression with fromPlt(). If the thunk becomes unusable we
retarget the relocation back to its original target and try again. When we
do this we need to make sure that we restore the PLT form of the expression
with toPlt().
This change adds a test case that will fail if toPlt() is removed. We need
to have a call to a preemptible symbol defined within the link unit. If
toPlt() is removed then the relocation to the thunk to the PLT entry for the
preemptible symbol will be retargeted to the preemptible symbol itself
instead of its PLT entry.
Differential Revision: https://reviews.llvm.org/D57743
llvm-svn: 353285
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/scope/main.cpp')
0 files changed, 0 insertions, 0 deletions