aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-02-07 16:22:54 +0200
committerMartin Storsjö <martin@martin.st>2014-02-19 09:57:19 +0200
commit543156d7518f5e5d731123da066d86278f9fa492 (patch)
tree5e10aa7195b53c15993f09b9973defd8fc712472
parentfea6db064b00822af488db93f0f8b19f25cae515 (diff)
downloadffmpeg-543156d7518f5e5d731123da066d86278f9fa492.tar.gz
arm: Mark the stack as non-executable
If linking in an object file without this attribute set, the linker will assume that an executable stack might be needed. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavutil/arm/asm.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index f4523ea310..45fdf55522 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -53,6 +53,7 @@
.syntax unified
T .thumb
ELF .eabi_attribute 25, 1 @ Tag_ABI_align_preserved
+ELF .section .note.GNU-stack,"",%progbits @ Mark stack as non-executable
.macro function name, export=0, align=2
.set .Lpic_idx, 0