diff --git a/libc/arch-arm/bionic/crtend.S b/libc/arch-arm/bionic/crtend.S index 2f3b1ede3..7196fc10d 100644 --- a/libc/arch-arm/bionic/crtend.S +++ b/libc/arch-arm/bionic/crtend.S @@ -38,3 +38,6 @@ .section .ctors, "aw" .long 0 +#if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits +#endif diff --git a/libc/arch-arm/bionic/crtend_so.S b/libc/arch-arm/bionic/crtend_so.S index a1281c402..0cb99478a 100644 --- a/libc/arch-arm/bionic/crtend_so.S +++ b/libc/arch-arm/bionic/crtend_so.S @@ -36,3 +36,6 @@ .section .fini_array, "aw" .long 0 +#if defined(__linux__) && defined(__ELF__) + .section .note.GNU-stack,"",%progbits +#endif