From 7bc205ba544140422dde8c5554e1ce83cf12970e Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 3 Apr 2025 23:23:42 +0200 Subject: ne10: Avoid requesting an executable stack This avoids warnings like: ld: warning: NE10_physics.neon.s.o: missing .note.GNU-stack section implies executable stack ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker With glibc 2.41, the need for an executable stack lead to errors like this in runtime: [ ERR ] foo@0[984]: [setup-script: /usr/share/foo/foo.enc] sol: runtime error: libNE10.so.10: cannot enable executable stack as shared object requires: Invalid argument Signed-off-by: Peter Kjellerstedt Signed-off-by: Khem Raj --- meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-support/ne10/ne10_1.2.1.bb b/meta-oe/recipes-support/ne10/ne10_1.2.1.bb index b10c23984d..39ff7ab969 100644 --- a/meta-oe/recipes-support/ne10/ne10_1.2.1.bb +++ b/meta-oe/recipes-support/ne10/ne10_1.2.1.bb @@ -26,6 +26,7 @@ NE10_TARGET_ARCH:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon","armv7"," NE10_TARGET_ARCH:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","armv7","",d)}" EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' +CFLAGS += "-Wa,--noexecstack" do_install() { install -d ${D}${libdir} -- cgit v1.2.3-54-g00ecf