aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-07-09 10:05:18 +0100
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-07-09 10:41:40 +0100
commit35c5e564e628666af7903f6525b0de1a5917f071 (patch)
treeceaf6845409ac0551a70ac982051431b62a99c1d /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
parent6d87ca08aed19fd4e975788ffd3d25592447ff8e (diff)
downloadllvm-35c5e564e628666af7903f6525b0de1a5917f071.zip
llvm-35c5e564e628666af7903f6525b0de1a5917f071.tar.gz
llvm-35c5e564e628666af7903f6525b0de1a5917f071.tar.bz2
[ELF] Check the Elf_Rel addends for dynamic relocations
There used to be many cases where addends for Elf_Rel were not emitted in the final object file (mostly when building for MIPS64 since the input .o files use RELA but the output uses REL). These cases have been fixed since, but this patch adds a check to ensure that the written values are correct. It is based on a previous patch that I added to the CHERI fork of LLD since we were using MIPS64 as a baseline. The work has now almost entirely shifted to RISC-V and Arm Morello (which use Elf_Rela), but I thought it would be useful to upstream our local changes anyway. This patch adds a (hidden) command line flag --check-dynamic-relocations that can be used to enable these checks. It is also on by default in assertions builds for targets that handle all dynamic relocations kinds that LLD can emit in Target::getImplicitAddend(). Currently this is enabled for ARM, MIPS, and I386. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D101450
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions