CMakeList: remove print-gc-sections option
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 25 Jan 2023 04:52:00 +0000 (13:52 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Jan 2023 08:54:18 +0000 (17:54 +0900)
Remove print-gc-sections options.
It doesn't need to display the message of removing unused section.

Change-Id: Ia0e7d3797063203575f6a6ce9ae6e95cdca92be9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
CMakeLists.txt

index d3494fe..2b33e5d 100644 (file)
@@ -8,7 +8,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -fomit-frame-pointer -std=gnu++0x")
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdata-sections -ffunction-sections")
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color")
-SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro,--gc-sections -Wl,--print-gc-sections")
+SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro,--gc-sections")
 SET(CMAKE_VERBOSE_MAKEFILE OFF)
 MESSAGE("FLAGS: ${CMAKE_CXX_FLAGS}")
 MESSAGE("FLAGS: ${CMAKE_EXE_LINKER_FLAGS}")