aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorXing GUO <higuoxing@gmail.com>2020-05-08 09:54:08 +0800
committerXing GUO <higuoxing@gmail.com>2020-05-08 09:54:36 +0800
commitce86a986c39b2ad50ce495fe2d69c95d8a961c37 (patch)
tree2e3994119682669f28b42e8b83dca37f673df4c5 /lldb/source/Plugins/ScriptInterpreter/Python
parente8147ad8222602d16728c370d5fac086260d058c (diff)
downloadllvm-ce86a986c39b2ad50ce495fe2d69c95d8a961c37.zip
llvm-ce86a986c39b2ad50ce495fe2d69c95d8a961c37.tar.gz
llvm-ce86a986c39b2ad50ce495fe2d69c95d8a961c37.tar.bz2
[Object] Remove unneeded check in ELFFile<ELFT>::dynamicEntries().
Check for `DynSecSize % sizeof(Elf_Dyn) != 0` is unneeded in this context. 1. If the .dynamic section is acquired from program headers, the .dynamic section is "cut off" by ``` makeArrayRef(..., Phdr.p_filesz / sizeof(Elf_Dyn)); DynSeSize = Phdr.p_filesz; ``` 2. If the .dynamic section is acquired from section headers, the .dynamic section is checked in `getSectionContentsAsArray<Elf_Dyn>(&Sec)`. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D79560
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions