generic: 5.15: backport PPC VDSO executable stack fix
authorRobert Marko <robimarko@gmail.com>
Wed, 7 Jun 2023 07:58:22 +0000 (09:58 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 8 Jun 2023 04:51:09 +0000 (06:51 +0200)
commit12d6fe2f686635a3fbef02340a713ca1448ce1f1
tree0179217a37174a5dd5dbbea7faec774b493c36f6
parent62338f41625074640a4de9e26e5e67b010fe0ebe
generic: 5.15: backport PPC VDSO executable stack fix

Recent binutils will warn if there is no .note.GNU-stack section and will
interpret that as that stack is executable.

So, lets modify the upstream 6.1 fix as in 5.15 VDSO32 and VDSO64 are still
separate but later they were merged to resolve:
/external-toolchain/openwrt-toolchain-mpc85xx-p1020_gcc-12.3.0_musl.Linux-x86_64/toolchain-powerpc_8548_gcc-12.3.0_musl/bin/../lib/gcc/powerpc-openwrt-linux-musl/12.3.0/../../../../powerpc-openwrt-linux-musl/bin/ld: warning: arch/powerpc/kernel/vdso32/getcpu.o: missing .note.GNU-stack section implies executable stack
/external-toolchain/openwrt-toolchain-mpc85xx-p1020_gcc-12.3.0_musl.Linux-x86_64/toolchain-powerpc_8548_gcc-12.3.0_musl/bin/../lib/gcc/powerpc-openwrt-linux-musl/12.3.0/../../../../powerpc-openwrt-linux-musl/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/backport-5.15/360-v6.1-powerpc-vdso-link-with-z-noexecstack.patch [new file with mode: 0644]