From: Aliaksei Makarau Date: Wed, 4 Feb 2026 10:32:25 +0000 (+0100) Subject: s390x CRC assembly not requiring ELF execstack X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df8d6756e47faeb83aefd770570f01716dc380df;p=ceph.git 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 --- 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 */