summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJez Ng <jezng@fb.com>2021-10-27 14:58:15 -0400
committerJez Ng <jezng@fb.com>2021-10-27 14:58:42 -0400
commitb7e12ca7aab73a00d7a7a2fbbd5214dde9353335 (patch)
tree0d6a2bbc9565db63aea4237dbc6e2d50b0e6d10d /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent665060ea4583fa1773a900d81b71c489aaf3e8e4 (diff)
[lld-macho] If export_size is zero, export_off must be zero
Otherwise tools like codesign_allocate will choke. We were already handling this correctly for the other DYLD_INFO sections. Doing this correctly is a bit subtle: we don't know if export_size will be zero until we have run `ExportSection::finalizeContents()`. However, we must still add the ExportSection to the `__LINKEDIT` segment in order that it gets sorted during `sortSectionsAndSegments()`. Reviewed By: #lld-macho, oontvoo Differential Revision: https://reviews.llvm.org/D112589
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions