]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Write `GNU-stack` Section on All ELF Architectures
authorW. Felix Handte <w@felixhandte.com>
Wed, 5 Jan 2022 20:42:58 +0000 (15:42 -0500)
committerW. Felix Handte <w@felixhandte.com>
Wed, 5 Jan 2022 20:44:40 +0000 (15:44 -0500)
Previously we did this only on Linux, which missed other Unices.

lib/decompress/huf_decompress_amd64.S

index 706786bb0db02dca8916f6f94fd00dc837f4578d..d2fb90ca110ef96244ba3152840454a4ccbf936f 100644 (file)
@@ -3,7 +3,7 @@
 /* Stack marking
  * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
  */
-#if defined(__linux__) && defined(__ELF__)
+#if defined(__ELF__)
 .section .note.GNU-stack,"",%progbits
 #endif