diff --git a/projects/rocwmma/test/CMakeLists.txt b/projects/rocwmma/test/CMakeLists.txt index c90470eb131..acbd87d1af7 100644 --- a/projects/rocwmma/test/CMakeLists.txt +++ b/projects/rocwmma/test/CMakeLists.txt @@ -36,7 +36,7 @@ if(ROCWMMA_CODE_COVERAGE) add_compile_options(-fprofile-instr-generate -fcoverage-mapping) add_link_options(-fprofile-instr-generate) endif() -add_link_options(-mcmodel=large) +add_link_options(-mcmodel=large -Wl,--gc-sections) # Test/benchmark requires additional dependencies if(ROCWMMA_USE_SYSTEM_GOOGLETEST)