From 0c6f6b5723cbb746790ae7186f4b5f3048d93470 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 28 Apr 2023 02:25:04 +0200 Subject: [PATCH] Avoid executable stack (#243) without this patch, the rpmlint check for executable stack failed the build on openSUSE. --- lzma/ASM/x86/7zCrcOpt_asm.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lzma/ASM/x86/7zCrcOpt_asm.asm b/lzma/ASM/x86/7zCrcOpt_asm.asm index 37465ace..dff38174 100644 --- a/lzma/ASM/x86/7zCrcOpt_asm.asm +++ b/lzma/ASM/x86/7zCrcOpt_asm.asm @@ -138,4 +138,10 @@ MY_ENDP %ifidn __OUTPUT_FORMAT__,elf section .note.GNU-stack noalloc noexec nowrite progbits %endif +%ifidn __OUTPUT_FORMAT__,elf32 +section .note.GNU-stack noalloc noexec nowrite progbits +%endif +%ifidn __OUTPUT_FORMAT__,elf64 +section .note.GNU-stack noalloc noexec nowrite progbits +%endif