diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-02 02:18:01 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-02 02:18:01 +0000 |
| commit | a959393a1595917e2260fa3928f48a0db3b1f4fa (patch) | |
| tree | 0d0e7bd3b2a70ea30760f8c3bf09a29f513a5cc5 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | b4f6ebf80695ee4aeefe4184728a1b3379b54baa (diff) | |
Add strings to .dynstr early.
Previously, we added strings from DynamicSection::finalize().
It was a bit tricky because finalize() is supposed to fix the final
size of the section, but adding new strings would change the size of
.dynstr section. So there was a dependency between finalize functions
of .dynamic and .dynstr.
However, I noticed that we can elimiante the dependency by simply
add strings early; we don't have to do that in finalize() but can do
from DynamicSection's ctor.
This patch defines a new function, DynamicSection::addEntries, to
add .dynamic entries that doesn't depend on other sections.
llvm-svn: 285784
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
