aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-07-07 11:28:27 -0400
committerNico Weber <thakis@chromium.org>2021-07-07 13:05:40 -0400
commit8a7b5ebf4d8fd5f4cfe1daf72e0e58df7f716e4c (patch)
tree292d2990c00479aff31f5bb07386904e9dc74c80 /lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
parentd4cb286b05f5192f6cbae310bd30cad3f05f13ac (diff)
downloadllvm-8a7b5ebf4d8fd5f4cfe1daf72e0e58df7f716e4c.zip
llvm-8a7b5ebf4d8fd5f4cfe1daf72e0e58df7f716e4c.tar.gz
llvm-8a7b5ebf4d8fd5f4cfe1daf72e0e58df7f716e4c.tar.bz2
[lld/mac] Don't crash when dead-stripping removes all unwind info
If the input has compact unwind info but all of it is removed after dead stripping, we would crash. Now we don't write any __unwind_info section at all, like ld64. This is a bit awkward to implement because we only know the final state of unwind info after UnwindInfoSectionImpl<Ptr>::finalize(), which is called after sections are added. So add a small amount of bookkeeping to relocateCompactUnwind() instead (which runs earlier) so that we can predict what finalize() will do before it runs. Fixes PR51010. Differential Revision: https://reviews.llvm.org/D105557
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp')
0 files changed, 0 insertions, 0 deletions