From df8d6756e47faeb83aefd770570f01716dc380df Mon Sep 17 00:00:00 2001 From: Aliaksei Makarau Date: Wed, 4 Feb 2026 11:32:25 +0100 Subject: [PATCH] s390x CRC assembly not requiring ELF execstack ceph-osd and libceph-common.so.2 are marked as execstack ELFs. This PR does add the GCCs noexecstack option. Fixes: https://tracker.ceph.com/issues/74751 Signed-off-by: Aliaksei Makarau --- src/common/crc32c_s390x_vx-insn.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/crc32c_s390x_vx-insn.h b/src/common/crc32c_s390x_vx-insn.h index d3b7a9c800cd..e9c41c299efb 100644 --- a/src/common/crc32c_s390x_vx-insn.h +++ b/src/common/crc32c_s390x_vx-insn.h @@ -491,4 +491,9 @@ name: MRXBOPC 0, 0x7D, v1, v2, v3 .endm +/* inform linker that this doesn't require executable stack */ +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endif + #endif /* __ASM_S390_VX_INSN_H */ -- 2.47.3