summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl/0001-Remove-using-.end-directive-with-clang.patch
blob: be79cb53f15b16941f6fae0f6366661a038e2997 (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
29
30
31
32
33
34
35
36
From b6732f68848ecc8ff01054bf7aea70a241c37116 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 10 Apr 2020 11:23:39 -0700
Subject: [PATCH] Remove using .end directive with clang

Clang does not support this asm directive
Fixes Issue #19

Upstream-Status: Submitted [https://github.com/kaniini/libucontext/pull/20]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 arch/common/common-defs.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/common/common-defs.h b/arch/common/common-defs.h
index bf2fb8c..618116b 100644
--- a/arch/common/common-defs.h
+++ b/arch/common/common-defs.h
@@ -28,10 +28,13 @@
 	ENT(__proc)					\
 __proc:							\
 	SETUP_FRAME(__proc)
-
+#ifdef __clang__
+#define END(__proc)
+#else
 #define END(__proc)					\
 	.end	__proc;					\
 	.size	__proc,.-__proc;
+#endif
 
 #define ALIAS(__alias, __real)				\
 	.weak	__alias;				\
-- 
2.26.0