Ensure RTTI symbol visibility for Linux Clang -fsanitize=function,vptr
use RTLD_GLOBAL, similar to 62b124b270
"Ensure
RTTI symbol visibility for Linux Clang -fsanitize=function,vptr"
Change-Id: I8b3e8681b5ec07fa67f035651c1a99652a56b7f9
This commit is contained in:
@@ -84,7 +84,7 @@ static SalInstance* tryInstance( const OUString& rModuleBase, bool bForce = fals
|
|||||||
|
|
||||||
oslModule aMod = osl_loadModuleRelative(
|
oslModule aMod = osl_loadModuleRelative(
|
||||||
reinterpret_cast< oslGenericFunction >( &tryInstance ), aModule.pData,
|
reinterpret_cast< oslGenericFunction >( &tryInstance ), aModule.pData,
|
||||||
SAL_LOADMODULE_DEFAULT );
|
SAL_LOADMODULE_GLOBAL );
|
||||||
if( aMod )
|
if( aMod )
|
||||||
{
|
{
|
||||||
salFactoryProc aProc = reinterpret_cast<salFactoryProc>(osl_getAsciiFunctionSymbol( aMod, "create_SalInstance" ));
|
salFactoryProc aProc = reinterpret_cast<salFactoryProc>(osl_getAsciiFunctionSymbol( aMod, "create_SalInstance" ));
|
||||||
|
Reference in New Issue
Block a user