vcgencmd: Apply ASLR 14/263314/3 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20210901.140902 submit/tizen_6.0/20210901.055401
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 31 Aug 2021 08:44:13 +0000 (17:44 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Sep 2021 04:06:16 +0000 (13:06 +0900)
Change-Id: I8ee52bc07d44290d543f54654bd64b8715b4511d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
host_applications/linux/apps/gencmd/CMakeLists.txt

index f95d1a1..f1a1d32 100755 (executable)
@@ -7,13 +7,14 @@ else ()
    add_definitions(-Wall -Werror)
 endif ()
 
-include_directories( ../../../.. 
+include_directories( ../../../..
                      ../../../../interface/vcos
                      ../../../../interface/vcos/${VCOS_PLATFORM} )
 
 #add_subdirectory( ../../../../interface/vcos/${VCOS_PLATFORM} vcos)
 #add_subdirectory( ../../bin/gencmd)
 
+SET(CMAKE_EXE_LINKER_FLAGS "-pie")
 add_executable(vcgencmd gencmd.c)
 target_link_libraries(vcgencmd vcos vchiq_arm vchostif)
 install(TARGETS vcgencmd RUNTIME DESTINATION bin)