1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 09_noexec-stack.dpatch by Russell Coker <russell@coker.com.au>
4
## DP: The following patch adds a section to the libFLAC.so file to indicate that
5
## DP: it doesn't need an executable stack. This allows programs using it to run
6
## DP: correctly on SE Linux systems, and with exec-shield.
9
diff -urNad flac~/src/libFLAC/ia32/nasm.h flac/src/libFLAC/ia32/nasm.h
10
--- flac~/src/libFLAC/ia32/nasm.h 2009-08-03 16:37:33.000000000 +0200
11
+++ flac/src/libFLAC/ia32/nasm.h 2009-08-03 16:38:29.000000000 +0200
17
+section .note.GNU-stack progbits noalloc noexec nowrite align=1