From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] x86: lib: setjmp: mark as not needing executable stack
Date: Fri, 17 May 2024 09:47:54 +0200 [thread overview]
Message-ID: <20240517074754.767031-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20240517074754.767031-1-a.fatoum@pengutronix.de>
We don't require an executable stack for our x86 setjmp
implementations. Note that, so we don't get a warning when we start
using this implementation for sandbox when compiled on x86.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/x86/lib/setjmp_32.S | 2 ++
arch/x86/lib/setjmp_64.S | 2 ++
2 files changed, 4 insertions(+)
diff --git a/arch/x86/lib/setjmp_32.S b/arch/x86/lib/setjmp_32.S
index 5814623f9478..cf340d35d8fd 100644
--- a/arch/x86/lib/setjmp_32.S
+++ b/arch/x86/lib/setjmp_32.S
@@ -10,6 +10,8 @@
#include <linux/linkage.h>
#include <asm-generic/pointer.h>
+.section .note.GNU-stack,"",%progbits
+
.text
.align 8
diff --git a/arch/x86/lib/setjmp_64.S b/arch/x86/lib/setjmp_64.S
index bfa152149975..a0be4c0d7858 100644
--- a/arch/x86/lib/setjmp_64.S
+++ b/arch/x86/lib/setjmp_64.S
@@ -8,6 +8,8 @@
#include <linux/linkage.h>
#include <asm-generic/pointer.h>
+.section .note.GNU-stack,"",%progbits
+
.text
.align 8
--
2.39.2
next prev parent reply other threads:[~2024-05-17 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-17 7:47 [PATCH 1/2] images: sha_sum: " Ahmad Fatoum
2024-05-17 7:47 ` Ahmad Fatoum [this message]
2024-05-21 6:35 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240517074754.767031-2-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox