diff options
author | Fangrui Song <maskray@google.com> | 2018-06-11 19:42:57 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-06-11 19:42:57 +0000 |
commit | 2389a240d02bd8440995e2ad630958e1971ebec7 (patch) | |
tree | c21b97209c15ebe4a72dd65802ea8ebca5287d3a /lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py | |
parent | d1df7b7ee751206f6e9cee31ac003801376c938a (diff) | |
download | bcm5719-llvm-2389a240d02bd8440995e2ad630958e1971ebec7.tar.gz bcm5719-llvm-2389a240d02bd8440995e2ad630958e1971ebec7.zip |
[ELF] Fix copy relocation when two symbols share the same Symbol instance.
In glibc libc.so.6, the multiple versions of sys_errlist share the same Symbol instance. When sys_errlist is copy relocated, we would replace SharedSymbol with Defined in the first iteration of the following loop:
for (SharedSymbol *Sym : getSymbolsAt<ELFT>(SS))
Then in the second iteration, we think the symbol (which has been changed to Defined) is still SharedSymbol and screw up (the address ends up in the `Size` field).
llvm-svn: 334432
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py')
0 files changed, 0 insertions, 0 deletions