From: W. Felix Handte Date: Wed, 5 Jan 2022 21:03:32 +0000 (-0500) Subject: Restrict `GNU-stack` Note to GNU Assemblers X-Git-Tag: v1.5.2^2~13^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef1f9e80ffc62c5de06375bc62012373a5d0b77f;p=thirdparty%2Fzstd.git Restrict `GNU-stack` Note to GNU Assemblers --- diff --git a/lib/decompress/huf_decompress_amd64.S b/lib/decompress/huf_decompress_amd64.S index d2fb90ca1..0b4cd38ee 100644 --- a/lib/decompress/huf_decompress_amd64.S +++ b/lib/decompress/huf_decompress_amd64.S @@ -3,7 +3,7 @@ /* Stack marking * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart */ -#if defined(__ELF__) +#if defined(__ELF__) && defined(__GNUC__) .section .note.GNU-stack,"",%progbits #endif