diff options
author | Frederich Munch <colsebas@hotmail.com> | 2017-04-24 19:55:16 +0000 |
---|---|---|
committer | Frederich Munch <colsebas@hotmail.com> | 2017-04-24 19:55:16 +0000 |
commit | 70c377a3625969f4784798726e0ce47a78e24311 (patch) | |
tree | 3b7bfd0879dce29de9268c852bc01c045b7593ae /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | 5d7633f75d1de17720de5dba670e9b24403e10eb (diff) | |
download | bcm5719-llvm-70c377a3625969f4784798726e0ce47a78e24311.tar.gz bcm5719-llvm-70c377a3625969f4784798726e0ce47a78e24311.zip |
Refactor DynamicLibrary so searching for a symbol will have a defined order and
libraries are properly unloaded when llvm_shutdown is called.
Summary:
This was mostly affecting usage of the JIT, where storing the library handles in
a set made iteration unordered/undefined. This lead to disagreement between the
JIT and native code as to what the address and implementation of particularly on
Windows with stdlib functions:
JIT: putenv_s("TEST", "VALUE") // called msvcrt.dll, putenv_s
JIT: getenv("TEST") -> "VALUE" // called msvcrt.dll, getenv
Native: getenv("TEST") -> NULL // called ucrt.dll, getenv
Also fixed is the issue of DynamicLibrary::getPermanentLibrary(0,0) on Windows
not giving priority to the process' symbols as it did on Unix.
Reviewers: chapuni, v.g.vassilev, lhames
Reviewed By: lhames
Subscribers: danalbert, srhines, mgorny, vsk, llvm-commits
Differential Revision: https://reviews.llvm.org/D30107
llvm-svn: 301236
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions