Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-libs/dav1d: fix warnings about read- and writeable code #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions media-libs/dav1d/dav1d-0.3.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ DEPEND="${RDEPEND}

DOCS=( README.md doc/PATENTS )

PATCHES=( "${FILESDIR}"/713.patch )

multilib_src_configure() {
local -a bits=()
use 8bit && bits+=( 8 )
Expand Down
24 changes: 24 additions & 0 deletions media-libs/dav1d/files/713.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 854fc42dcbd4ba0b33b47f5c193593b4babe8eaa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <[email protected]>
Date: Thu, 23 May 2019 23:20:35 +0300
Subject: [PATCH] arm: Mark the stack as non-executable on ELF

---
src/arm/asm.S | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/arm/asm.S b/src/arm/asm.S
index af96d51..6b1d46f 100644
--- a/src/arm/asm.S
+++ b/src/arm/asm.S
@@ -37,6 +37,7 @@
.fpu neon
.eabi_attribute 10, 0 // suppress Tag_FP_arch
.eabi_attribute 12, 0 // suppress Tag_Advanced_SIMD_arch
+ .section .note.GNU-stack,"",%progbits // Mark stack as non-executable
#endif

#ifdef _WIN32
--
2.18.1