diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ab4ef394cc..b31321c719f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -951,10 +951,9 @@ if(CONFIG_ARM AND CONFIG_USERSPACE) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${PRIV_STACKS_OUTPUT_SRC} PROPERTIES COMPILE_DEFINITIONS "${compile_definitions_interface}") - # always compile priv_stacks_hash.c at optimization -Os set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${PRIV_STACKS_OUTPUT_SRC} PROPERTIES COMPILE_FLAGS - "${NO_COVERAGE_FLAGS} -Os -fno-function-sections -fno-data-sections ") + "${NO_COVERAGE_FLAGS} -fno-function-sections -fno-data-sections ") # We need precise control of where generated text/data ends up in the final # kernel image. Disable function/data sections and use objcopy to move @@ -1075,9 +1074,8 @@ if(CONFIG_USERSPACE) ${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_SRC} ) - # always compile kobject_hash.c at optimization -Os set_source_files_properties(${OUTPUT_SRC} PROPERTIES COMPILE_FLAGS - "${NO_COVERAGE_FLAGS} -Os -fno-function-sections -fno-data-sections") + "${NO_COVERAGE_FLAGS} -fno-function-sections -fno-data-sections") set_source_files_properties(${OUTPUT_SRC} PROPERTIES COMPILE_DEFINITIONS "${compile_definitions_interface}")