From: Seung-Woo Kim Date: Tue, 31 Aug 2021 08:44:13 +0000 (+0900) Subject: vcgencmd: Apply ASLR X-Git-Tag: accepted/tizen/6.5/unified/20211028.093355 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2F6.5%2Funified%2F20211028.093355;p=platform%2Fadaptation%2Fbroadcom%2Flibomxil-vc4.git vcgencmd: Apply ASLR Change-Id: I8ee52bc07d44290d543f54654bd64b8715b4511d Signed-off-by: Seung-Woo Kim --- 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)