]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Restrict `GNU-stack` Note to GNU Assemblers
authorW. Felix Handte <w@felixhandte.com>
Wed, 5 Jan 2022 21:03:32 +0000 (16:03 -0500)
committerW. Felix Handte <w@felixhandte.com>
Wed, 5 Jan 2022 21:03:32 +0000 (16:03 -0500)
lib/decompress/huf_decompress_amd64.S

index d2fb90ca110ef96244ba3152840454a4ccbf936f..0b4cd38ee10c35b29f54893a12af9229654e019c 100644 (file)
@@ -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