[PATCH 1/2] images: sha_sum: mark as not needing executable stack

Ahmad Fatoum a.fatoum at pengutronix.de
Fri May 17 00:47:53 PDT 2024


The hash section contains only data, so add a note that an executable
stack is not needed. This will suppress a warning when we start using
this on sandbox.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 images/sha_sum.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/images/sha_sum.S b/images/sha_sum.S
index 5928c206a877..d62af87f6695 100644
--- a/images/sha_sum.S
+++ b/images/sha_sum.S
@@ -1,4 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+
+        .section .note.GNU-stack,"",%progbits
         .section .shasum,"a"
         .globl  sha_sum
 sha_sum:
-- 
2.39.2




More information about the barebox mailing list