libica/libica-3.3.3-noexecstack.patch

24 lines
717 B
Diff

From 524659f8e042aed45015e1aca930a3cfe5ffa628 Mon Sep 17 00:00:00 2001
From: Patrick Steuer <patrick.steuer@de.ibm.com>
Date: Tue, 12 Jun 2018 14:36:45 +0200
Subject: [PATCH] Add non-executable gnu stack markings in the assembly.
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
---
src/mp.pl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mp.pl b/src/mp.pl
index 3c73736..e249f61 100755
--- a/src/mp.pl
+++ b/src/mp.pl
@@ -505,4 +505,8 @@
LONG (0x10000102,0x03040506,0x10071819,0x1a1b1c1d);
LONG (0x00000000,0x00000018,0x00191a1b,0x1c1d1e1f);
+VERBATIM("#if defined(__linux__) && defined(__ELF__)\n");
+SECTION (".note.GNU-stack,\"\",%progbits");
+VERBATIM("#endif\n");
+
PERLASM_END();