net-p2p/litecoind: fix RWX GNU stack
authorAnthony G. Basile <blueness@gentoo.org>
Sun, 3 Jan 2016 13:51:11 +0000 (08:51 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Sun, 3 Jan 2016 13:52:28 +0000 (08:52 -0500)
Package-Manager: portage-2.2.24

net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch [new file with mode: 0644]
net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild [moved from net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild with 96% similarity]

diff --git a/net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch b/net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch
new file mode 100644 (file)
index 0000000..cbaf66e
--- /dev/null
@@ -0,0 +1,17 @@
+diff -Naur litecoin-0.10.2.2.orig/src/secp256k1/src/field_5x52_asm.asm litecoin-0.10.2.2/src/secp256k1/src/field_5x52_asm.asm
+--- litecoin-0.10.2.2.orig/src/secp256k1/src/field_5x52_asm.asm        2015-06-15 04:51:30.000000000 -0400
++++ litecoin-0.10.2.2/src/secp256k1/src/field_5x52_asm.asm     2016-01-03 08:35:26.438350565 -0500
+@@ -466,4 +466,12 @@
+       jmp common_exit_norm
+       end
+ 
+-      
++%ifidn __OUTPUT_FORMAT__,elf
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
++%ifidn __OUTPUT_FORMAT__,elf32
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
++%ifidn __OUTPUT_FORMAT__,elf64
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
similarity index 96%
rename from net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild
rename to net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild
index c7f70686e16c64ed11f2dbd2c195d4a63ac1a1dc..9b2dea415f0f54e00edc66ec8eec889e73d307b9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -46,6 +46,7 @@ src_prepare() {
        epatch "${FILESDIR}"/0.9.0-sys_leveldb.patch
        epatch "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
        epatch "${FILESDIR}"/litecoin-miniupnpc-abi.patch
+       epatch "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
        eautoreconf
        rm -r src/leveldb
 }