From: W. Felix Handte Date: Wed, 5 Jan 2022 20:42:58 +0000 (-0500) Subject: Write `GNU-stack` Section on All ELF Architectures X-Git-Tag: v1.5.2^2~13^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b12edddb3784c59c459a40f6108027b0bcedaf2f;p=thirdparty%2Fzstd.git Write `GNU-stack` Section on All ELF Architectures Previously we did this only on Linux, which missed other Unices. --- diff --git a/lib/decompress/huf_decompress_amd64.S b/lib/decompress/huf_decompress_amd64.S index 706786bb0..d2fb90ca1 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(__linux__) && defined(__ELF__) +#if defined(__ELF__) .section .note.GNU-stack,"",%progbits #endif