summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-lto/llvm-lto.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-02-24 00:37:27 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-02-24 00:37:27 +0000
commitf535d33fee75d2f3fd75e05b9414549e7db594e3 (patch)
treef2934943dcb1d82144649c8b148924cfa84914cf /llvm/tools/llvm-lto/llvm-lto.cpp
parent3aa0bd81a2fdbe7ed8dc6a90ceb3b931adf6a2dd (diff)
downloadbcm5719-llvm-f535d33fee75d2f3fd75e05b9414549e7db594e3.tar.gz
bcm5719-llvm-f535d33fee75d2f3fd75e05b9414549e7db594e3.zip
[ASan] Disable strict init-order checking if dlopen() is called.
Revise the fix to https://code.google.com/p/address-sanitizer/issues/detail?id=178: always disable strict init-order checking the first time dlopen() is called: at this point shared library is allowed to access globals defined in the main executable, as they are guaranteed to be initialized. Revise the test cases: * simplify init-order-dlopen.cc test case: make it Linux-specific (there's no strict init-order checking on other platforms anyway), and single-threaded. * reinforce init-order-pthread-create.cc test case: make sure that init-order checker would produce a false positive unless we turn it off at the moment we call pthread_create(). llvm-svn: 230288
Diffstat (limited to 'llvm/tools/llvm-lto/llvm-lto.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud