Fix fortifications on armv7hl.

This commit is contained in:
Vít Ondruch 2020-04-06 19:14:51 +02:00
commit 153f2c16fe
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S
index b66db29622..596284b5cf 100644
--- a/coroutine/arm32/Context.S
+++ b/coroutine/arm32/Context.S
@@ -24,3 +24,7 @@ coroutine_transfer:
# Restore callee state (8 registers program counter)
pop {r4-r11,pc}
+
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif