View | Details | Raw Unified | Return to bug 259434
Collapse All | Expand All

(-)b/editors/kakoune/files/patch-src_main.cc (-1 / +17 lines)
Added Link Here
0
- 
1
--- src/main.cc.orig	2021-10-25 11:31:24 UTC
2
+++ src/main.cc
3
@@ -1249,8 +1249,12 @@ int main(int argc, char* argv[])
4
 }
5
 
6
 #if defined(__ELF__)
7
-asm(R"(
8
-.pushsection ".debug_gdb_scripts", "MS",@progbits,1
9
+#ifdef __arm__
10
+# define PROGBITS "%progbits"
11
+#else
12
+# define PROGBITS "@progbits"
13
+#endif
14
+asm(".pushsection \".debug_gdb_scripts\", \"MS\"," PROGBITS ",1" R"(
15
 .byte 4
16
 .ascii "kakoune-inline-gdb.py\n"
17
 .ascii "import os.path\n"

Return to bug 259434