OSDN Git Service

arm: Mark the stack as non-executable
authorMartin Storsjö <martin@martin.st>
Fri, 7 Feb 2014 14:22:54 +0000 (16:22 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 19 Feb 2014 07:57:19 +0000 (09:57 +0200)
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>
libavutil/arm/asm.S

index f4523ea..45fdf55 100644 (file)
@@ -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