From 4a22965fc7e201d33015ebe0f89f892fd89abf25 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Tue, 31 Aug 2021 17:44:13 +0900 Subject: [PATCH] vcgencmd: Apply ASLR Change-Id: I8ee52bc07d44290d543f54654bd64b8715b4511d Signed-off-by: Seung-Woo Kim --- host_applications/linux/apps/gencmd/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/host_applications/linux/apps/gencmd/CMakeLists.txt b/host_applications/linux/apps/gencmd/CMakeLists.txt index f95d1a1..f1a1d32 100755 --- a/host_applications/linux/apps/gencmd/CMakeLists.txt +++ b/host_applications/linux/apps/gencmd/CMakeLists.txt @@ -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) -- 2.7.4