summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-03-02 12:33:31 +0200
committerMartin Storsjö <martin@martin.st>2022-03-03 10:08:51 +0200
commit4c3b74b7f5d6192d1731c88f1aeb396bc51d4949 (patch)
tree61f34d0d2e58af52d278dbabbc04d161e7a99dae /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parenta5605c9a15b30da42821a8238ebc8f7177a904e9 (diff)
[LLD] [COFF] Order .debug_* sections at the end, to avoid leaving gaps if stripped
So far, we sort all discardable sections at the end, with only some extra logic to make sure that the .reloc section is at the start of that group of sections. But if there are other discardable sections, other than .reloc, they must also be ordered before .debug_* sections, to avoid leaving gaps if the executable is stripped. (Stripping executables doesn't remove all discardable sections, only the ones named .debug_*). Rust binaries seem to include a .rmeta section, which is marked discardable. This fixes stripping such binaries if built with dwarf debug info included. This fixes issues observed in MSYS2 in https://github.com/msys2/MINGW-packages/pull/10555. Differential Revision: https://reviews.llvm.org/D120805
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions