File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#define BTI_C bti c ;
10
10
11
+ #else
12
+
13
+ #define BTI_C
14
+
15
+ #endif
16
+
11
17
/*
12
- * When using in-kernel BTI we need to ensure that PCS-conformant assembly
13
- * functions have suitable annotations. Override SYM_FUNC_START to insert
14
- * a BTI landing pad at the start of everything.
18
+ * When using in-kernel BTI we need to ensure that PCS-conformant
19
+ * assembly functions have suitable annotations. Override
20
+ * SYM_FUNC_START to insert a BTI landing pad at the start of
21
+ * everything, the override is done unconditionally so we're more
22
+ * likely to notice any drift from the overridden definitions.
15
23
*/
16
24
#define SYM_FUNC_START (name ) \
17
25
SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN) \
37
45
SYM_START(name, SYM_L_WEAK, SYM_A_NONE) \
38
46
BTI_C
39
47
40
- #endif
41
-
42
48
/*
43
49
* Annotate a function as position independent, i.e., safe to be called before
44
50
* the kernel virtual mapping is activated.
You can’t perform that action at this time.
0 commit comments