All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][master][PATCH] android-tools: Enable position-independent executable
@ 2024-02-22 12:55 Pawan
  2024-02-22 13:02 ` Pawan Badganchi
  2024-02-22 13:11 ` [oe] " Martin Jansa
  0 siblings, 2 replies; 4+ messages in thread
From: Pawan @ 2024-02-22 12:55 UTC (permalink / raw)
  To: openembedded-devel, badganchipv; +Cc: ranjitsinh.rathod

Enable position-independent executable security flag for adb
and fastboot. Verified that flag is enabled by using checksec.py

Upstream-Status: Pending

Signed-off-by: Pawan <badganchipv@gmail.com>
---
 .../recipes-devtool/android-tools/android-tools_29.0.6.r14.bb   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
index fbad5e136..6ec90c2f5 100644
--- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
+++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb
@@ -77,6 +77,8 @@ PREREQUISITE_core = "liblog libbase libsparse liblog libcutils"
 TOOLS_TO_BUILD = "libcrypto_utils libadb libziparchive fastboot adb img2simg simg2img libbacktrace"
 TOOLS_TO_BUILD:append:class-target = " adbd"
 
+SECURITY_CFLAGS:append:aarch64 = " -pie -fPIE"
+
 do_compile() {
 
     case "${HOST_ARCH}" in
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-22 13:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22 12:55 [OE-core][master][PATCH] android-tools: Enable position-independent executable Pawan
2024-02-22 13:02 ` Pawan Badganchi
2024-02-22 13:11 ` [oe] " Martin Jansa
2024-02-22 13:13   ` Pawan Badganchi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.