blob: b09db04fb4f63007c53f7144457da7fb963972fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
From 8d11e4630c1e92437636d016f35ad48395b62b4f Mon Sep 17 00:00:00 2001
From: Sertonix <sertonix@posteo.net>
Date: Sun, 6 Jul 2025 23:48:10 +0200
Subject: [PATCH] Fix cpuid.S on arm
The ARM assembly syntax differs a bit
Fixes 61b9339d3a1f getarch/cpuid.S: Fix warning about executable stack
Signed-off-by: Sertonix <sertonix@posteo.net>
---
cpuid.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cpuid.S b/cpuid.S
index 295917bdbe..a8f5f8b573 100644
--- a/cpuid.S
+++ b/cpuid.S
@@ -66,5 +66,9 @@ _cpuid:
#endif
#if defined(__ELF__) && defined(__linux__)
+#if defined(__arm__)
+ .section .note.GNU-stack,"",%progbits
+#else
.section .note.GNU-stack,"",@progbits
#endif
+#endif
|