Skip to contentSkip to conversation

android-tools: Enable position-independent executable

PATCH In review Pawan 2 participants 4 messages Feb 22, 2024

lore
Share & tools
lore

Pawan

author
#0 lore raw

PATCH 1/1 android-tools: Enable position-independent executable

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

Upstream-Status: Pending

---
 .../recipes-devtool/android-tools/android-tools_29.0.6.r14.bb   | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb +2 -0
index fbad5e136..6ec90c2f5 100644
@@ -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
Signature · 1 line
2.25.1
#2 lore raw
In reply to Pawan

[OE-core] tag doesn't belong to subject for meta-oe patches, use [meta-oe] instead.

Upstream-Status belongs to .patch files in the metadata, not to commit message of metadata changes.

Quoted 45 lines · Pawan Badganchi

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

Upstream-Status: Pending

---
 .../recipes-devtool/android-tools/android-tools_29.0.6.r14.bb   | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

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

(quoted diff) +0 -0
@@ -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"

meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb +2 -1
+SECURITY_CFLAGS:append:aarch64 = " -pie -fPIE"
+
 do_compile() {
 
     case "${HOST_ARCH}" in
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108983):
https://lists.openembedded.org/g/openembedded-devel/message/108983
Mute This Topic: https://lists.openembedded.org/mt/104507422/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-