shithub: libvpx

Download patch

ref: c3c870ed740427859d25e5991fdadcfeed99fb5f
parent: e80d569d3ac5aadad0c1b3ac16e99305c2fb4bb9
author: John Koleszar <jkoleszar@google.com>
date: Thu May 27 04:56:34 EDT 2010

x86: tell gnu ld that we don't require an executable stack

Fixes #2

Change-Id: Ie15c57ccf2f9721cb35102765d759817f2607cd7

--- a/vpx_ports/x86_abi_support.asm
+++ b/vpx_ports/x86_abi_support.asm
@@ -229,3 +229,14 @@
 %else
 %define SECTION_RODATA section .rodata
 %endif
+
+
+; Tell GNU ld that we don't require an executable stack.
+%ifidn __OUTPUT_FORMAT__,elf32
+section .note.GNU-stack noalloc noexec nowrite progbits
+section .text
+%elifidn __OUTPUT_FORMAT__,elf64
+section .note.GNU-stack noalloc noexec nowrite progbits
+section .text
+%endif
+