From 6a6e3a21b014d30a98509b6b0a3d1c01bcd8a046 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 2 Jan 2023 19:22:11 -0800 Subject: systemd: Add -Wl,--no-warn-rwx-segment with clang Remove the Os workaround, this is no longer needed with systemd 252+ Signed-off-by: Khem Raj --- conf/nonclangable.conf | 1 + recipes-core/systemd/systemd_%.bbappend | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 recipes-core/systemd/systemd_%.bbappend diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index bab6a69..6442ead 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -270,6 +270,7 @@ LDFLAGS:append:pn-qemu:toolchain-clang:x86 = " -latomic" # warning: has a LOAD segment with RWX permissions LDFLAGS:append:pn-ruby:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment" LDFLAGS:append:pn-cairo:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment" +LDFLAGS:append:pn-systemd:toolchain-clang:powerpc = " -Wl,--no-warn-rwx-segment" # glibc is built with gcc and hence encodes some libgcc specific builtins which are not found # when doing static linking with clang using compiler-rt, so use libgcc diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-core/systemd/systemd_%.bbappend deleted file mode 100644 index a54d6ee..0000000 --- a/recipes-core/systemd/systemd_%.bbappend +++ /dev/null @@ -1,7 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" - -# systemd 251.4 started to cause boot issues see -# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14906 -# As a workaround disable O2 and use Os for now with clang -SELECTED_OPTIMIZATION:append:toolchain-clang = "-Os" -SELECTED_OPTIMIZATION:remove:toolchain-clang = "-O2" -- cgit v1.2.3-54-g00ecf