summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-10 23:41:42 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-10 23:41:42 +0000
commit6bf0f9f25e024ef5f99edc0dd80b39d73d240af6 (patch)
tree2ab10cf59c92dc31c2a69a762e75405159999b48 /media-libs/x264-svn/files
parentInitial import. (diff)
downloadgentoo-2-6bf0f9f25e024ef5f99edc0dd80b39d73d240af6.tar.gz
gentoo-2-6bf0f9f25e024ef5f99edc0dd80b39d73d240af6.tar.bz2
gentoo-2-6bf0f9f25e024ef5f99edc0dd80b39d73d240af6.zip
Add patch to avoid executable stack on x86 and amd64.
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'media-libs/x264-svn/files')
-rw-r--r--media-libs/x264-svn/files/x264-svn-20060409-gnustack.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/media-libs/x264-svn/files/x264-svn-20060409-gnustack.patch b/media-libs/x264-svn/files/x264-svn-20060409-gnustack.patch
new file mode 100644
index 000000000000..04d5f241488a
--- /dev/null
+++ b/media-libs/x264-svn/files/x264-svn-20060409-gnustack.patch
@@ -0,0 +1,30 @@
+Index: x264-svn/common/amd64/amd64inc.asm
+===================================================================
+--- x264-svn.orig/common/amd64/amd64inc.asm
++++ x264-svn/common/amd64/amd64inc.asm
+@@ -27,6 +27,10 @@ BITS 64
+ ; This is true in practice (since we never do any 64bit arithmetic on strides),
+ ; but is not guaranteed by the ABI.
+
++%ifidn __YASM_OBJFMT__,elf
++section ".note.GNU-stack" noalloc noexec nowrite progbits
++%endif
++
+ %macro cglobal 1
+ %ifdef PREFIX
+ global _%1
+Index: x264-svn/common/i386/i386inc.asm
+===================================================================
+--- x264-svn.orig/common/i386/i386inc.asm
++++ x264-svn/common/i386/i386inc.asm
+@@ -26,6 +26,10 @@ BITS 32
+ ; Macros and other preprocessor constants
+ ;=============================================================================
+
++%ifidn __OUTPUT_FORMAT__,elf
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
++
+ ; Symbol prefix for C linkage
+ %macro cglobal 1
+ %ifdef PREFIX