Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not resolve mce-plugin-libhybris symbols from mce binary
The mce-plugin-libhybris DSO and mce executable have common
dynamic symbol names by design, but references from the plugin
side must not be resolved to mce side functions.
  • Loading branch information
spiiroin committed May 3, 2013
1 parent f75a05e commit f468389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mce-hybris.c
Expand Up @@ -318,7 +318,7 @@ static void *mce_hybris_lookup_function(const char *name)
if( !(path = mce_hybris_module_path()) ) {
mce_log(LL_WARN, "could not locate hybris plugin");
}
else if( !(base = dlopen(path, RTLD_NOW|RTLD_LOCAL)) ) {
else if( !(base = dlopen(path, RTLD_NOW|RTLD_LOCAL|RTLD_DEEPBIND)) ) {
mce_log(LL_WARN, "%s: failed to load: %s", path, dlerror());
}
else {
Expand Down

0 comments on commit f468389

Please sign in to comment.