vcgencmd: Apply ASLR 15/263315/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.093355 accepted/tizen/7.0/unified/20221110.061551 accepted/tizen/7.0/unified/hotfix/20221116.104350 accepted/tizen/unified/20210901.103723 submit/tizen/20210901.055320 submit/tizen_6.5/20211028.161401 tizen_6.5.m2_release tizen_7.0_m2_release
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:07:02 +0000 (13:07 +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)