Skip to contentSkip to conversation

ne10: Avoid requesting an executable stack

PATCH In review Peter Kjellerstedt 3 participants 3 messages Apr 3, 2025 – May 1, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/ne10/ne10_1.2.1.bb +1 -0
index b10c23984d..39ff7ab969 100644
@@ -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}
#1 lore raw
Quoted 7 lines · Peter Kjellerstedt via lists.openembedded.org

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

Considering ne10 hasn’t had a commit in seven years and the only user in meta-oe (libopus) also has intrinsic codepaths which the compiler probably does a better job at optimising, I’m wondering if we should just drop ne10 entirely.

Did you come across this from any specific recipe that isn’t libopus?

Cheers,
Ross

#2 lore raw
Quoted 23 lines

-----Original Message-----
From: Ross Burton <[email protected]>
Sent: den 1 maj 2025 10:22
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 1/1] ne10: Avoid requesting an executable stack

Quoted 7 lines · Peter Kjellerstedt via lists.openembedded.org

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

Considering ne10 hasn’t had a commit in seven years and the only user in meta-oe (libopus) also has intrinsic codepaths which the compiler probably does a better job at optimising, I’m wondering if we should just drop ne10 entirely.

Quoted 4 lines

Did you come across this from any specific recipe that isn’t libopus?

Cheers,
Ross

We have a couple of our own recipes that depend on ne10.

//Peter