Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev
This commit is contained in:
commit
41e0ceb5c9
|
@ -370,6 +370,15 @@ bool Config::read_binary_config(const char* ld_config_file_path,
|
|||
bool is_asan,
|
||||
const Config** config,
|
||||
std::string* error_msg) {
|
||||
// TODO(b/38114603) Currently, multiple namespaces does not support ASAN mode
|
||||
// where some symbols should be intercepted via LD_PRELOAD; LD_PRELOADed libs
|
||||
// are not being preloaded into the linked namespaces other than the default
|
||||
// namespace. Until we fix the problem, we temporarily disable ld.config.txt
|
||||
// in ASAN mode.
|
||||
if (is_asan) {
|
||||
return false;
|
||||
}
|
||||
|
||||
g_config.clear();
|
||||
|
||||
std::unordered_map<std::string, PropertyValue> property_map;
|
||||
|
|
|
@ -176,6 +176,7 @@ TEST(linker_config, smoke) {
|
|||
run_linker_config_smoke_test(false);
|
||||
}
|
||||
|
||||
TEST(linker_config, asan_smoke) {
|
||||
run_linker_config_smoke_test(true);
|
||||
}
|
||||
// TODO(b/38114603) revive this test when ld.config.txt is enabled for ASAN mode
|
||||
//TEST(linker_config, asan_smoke) {
|
||||
// run_linker_config_smoke_test(true);
|
||||
//}
|
||||
|
|
Loading…
Reference in New Issue