Avoid most other unnecessary PLT indirections

refs #8890
This commit is contained in:
Gunnar Beutner 2015-03-28 16:56:47 +01:00
parent 2cbc3142dc
commit 42a7ca4e78
2 changed files with 4 additions and 4 deletions

View File

@ -142,8 +142,8 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
endif()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
endif()
if(ICINGA2_LTO_BUILD)

View File

@ -71,7 +71,7 @@ String Value::GetTypeName(void) const
case ValueString:
return "String";
case ValueObject:
t = static_cast<Object::Ptr>(*this)->GetReflectionType();
t = boost::get<Object::Ptr>(m_Value)->GetReflectionType();
if (!t) {
if (IsObjectType<Array>())
return "Array";
@ -98,7 +98,7 @@ Type::Ptr Value::GetReflectionType(void) const
case ValueString:
return Type::GetByName("String");
case ValueObject:
return static_cast<Object::Ptr>(*this)->GetReflectionType();
return boost::get<Object::Ptr>(m_Value)->GetReflectionType();
default:
return Type::Ptr();
}