From 80faeb2369121acf56a7c5d161ffcada597674a2 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 27 Apr 2023 20:30:56 +0200 Subject: [PATCH] Avoid executable stack 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 37465ac..dff3817 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