From c5913196b751c753e11acee1d6da61046278b8b9 Mon Sep 17 00:00:00 2001 From: Eunhye Choi Date: Fri, 18 Feb 2022 20:17:18 +0900 Subject: [PATCH] meson: Apply ASLR on Executable Change-Id: I87f1c357ac0f925e2b9cf2794b14f8d7673dd9e2 --- subprojects/gst-editing-services/tools/meson.build | 1 + subprojects/gstreamer/docs/meson.build | 1 + subprojects/gstreamer/libs/gst/helpers/meson.build | 2 ++ subprojects/gstreamer/tools/meson.build | 1 + 4 files changed, 5 insertions(+) diff --git a/subprojects/gst-editing-services/tools/meson.build b/subprojects/gst-editing-services/tools/meson.build index 8ddcd06..cd991c6 100644 --- a/subprojects/gst-editing-services/tools/meson.build +++ b/subprojects/gst-editing-services/tools/meson.build @@ -9,6 +9,7 @@ endif ges_launch = executable('ges-launch-@0@'.format(apiversion), 'ges-validate.c', 'ges-launch.c', 'ges-launcher.c', 'utils.c', 'ges-launcher-kb.c', c_args : [ges_tool_args] + ['-DG_LOG_DOMAIN="ges-launch-@0@"'.format(apiversion)], + pie : true, dependencies : deps, install: true ) diff --git a/subprojects/gstreamer/docs/meson.build b/subprojects/gstreamer/docs/meson.build index 26331d7..3ce0b91 100644 --- a/subprojects/gstreamer/docs/meson.build +++ b/subprojects/gstreamer/docs/meson.build @@ -10,6 +10,7 @@ endif hotdoc_plugin_scanner = executable('gst-hotdoc-plugins-scanner', 'gst-hotdoc-plugins-scanner.c', + pie : true, c_args : gst_c_args, include_directories : [configinc], dependencies : [gobject_dep, gmodule_dep, glib_dep, gio_dep, gst_dep], diff --git a/subprojects/gstreamer/libs/gst/helpers/meson.build b/subprojects/gstreamer/libs/gst/helpers/meson.build index d924078..c1a7d7a 100644 --- a/subprojects/gstreamer/libs/gst/helpers/meson.build +++ b/subprojects/gstreamer/libs/gst/helpers/meson.build @@ -1,5 +1,6 @@ executable('gst-plugin-scanner', 'gst-plugin-scanner.c', + pie : true, c_args : gst_c_args, include_directories : [configinc], dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, gst_dep], @@ -110,6 +111,7 @@ if have_ptp endif executable('gst-ptp-helper', 'gst-ptp-helper.c', + pie : true, c_args : gst_c_args, include_directories : [configinc, libsinc], dependencies : [gio_dep, gobject_dep, glib_dep, mathlib, gst_dep, cap_dep], diff --git a/subprojects/gstreamer/tools/meson.build b/subprojects/gstreamer/tools/meson.build index 39b4287..8d46453 100644 --- a/subprojects/gstreamer/tools/meson.build +++ b/subprojects/gstreamer/tools/meson.build @@ -28,6 +28,7 @@ foreach tool : tools executable(exe_name, src_file, + pie : true, install: true, include_directories : [configinc], dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep] + extra_deps, -- 2.7.4