diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-04-03 23:23:42 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-04 19:18:47 -0700 |
| commit | 7bc205ba544140422dde8c5554e1ce83cf12970e (patch) | |
| tree | eaf08246d75b63a00f3d247bd6e3bd14c5c91d3a | |
| parent | 838a8ae9caa3be9436bc92c2260f68a61d31684c (diff) | |
| download | meta-openembedded-7bc205ba544140422dde8c5554e1ce83cf12970e.tar.gz | |
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 <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/ne10/ne10_1.2.1.bb | 1 |
1 files changed, 1 insertions, 0 deletions
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"," | |||
| 26 | NE10_TARGET_ARCH:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","armv7","",d)}" | 26 | NE10_TARGET_ARCH:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon","armv7","",d)}" |
| 27 | 27 | ||
| 28 | EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' | 28 | EXTRA_OECMAKE = '-DGNULINUX_PLATFORM=ON -DNE10_BUILD_SHARED=ON -DNE10_LINUX_TARGET_ARCH="${NE10_TARGET_ARCH}"' |
| 29 | CFLAGS += "-Wa,--noexecstack" | ||
| 29 | 30 | ||
| 30 | do_install() { | 31 | do_install() { |
| 31 | install -d ${D}${libdir} | 32 | install -d ${D}${libdir} |
