diff options
author | Fangrui Song <maskray@google.com> | 2020-04-21 14:44:03 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-04-21 15:39:31 -0700 |
commit | 01d2a01e79d3d83f18cf3e54c2bf55bba523b77a (patch) | |
tree | bc91a6c7b6430885b1fe289f2a61e69c3d9d95fb /lldb/unittests/ScriptInterpreter/Python | |
parent | c860262bd20d37c23053f14a82e8e4aa8827cc10 (diff) | |
download | llvm-01d2a01e79d3d83f18cf3e54c2bf55bba523b77a.zip llvm-01d2a01e79d3d83f18cf3e54c2bf55bba523b77a.tar.gz llvm-01d2a01e79d3d83f18cf3e54c2bf55bba523b77a.tar.bz2 |
[ELF] Fix a null pointer dereference when relocating a Local-Exec TLS relocation for a lazy symbol
If there is no SHF_TLS section, there will be no PT_TLS and Out::tlsPhdr may be a nullptr.
If the symbol referenced by an R_TLS is lazy, we should treat the symbol as undefined.
Also reorganize tls-in-archive.s and tls-weak-undef.s . They do not test what they intended to test.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions