]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
s390x CRC assembly not requiring ELF execstack 67217/head
authorAliaksei Makarau <aliaksei.makarau@ibm.com>
Wed, 4 Feb 2026 10:32:25 +0000 (11:32 +0100)
committerAliaksei Makarau <aliaksei.makarau@ibm.com>
Mon, 9 Feb 2026 08:16:13 +0000 (09:16 +0100)
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 <aliaksei.makarau@ibm.com>
src/common/crc32c_s390x_vx-insn.h

index d3b7a9c800cd28741dc20cb5a00b53168b73f72a..e9c41c299efb40298904cfaf3a6c01a2a07932b6 100644 (file)
@@ -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 */