Skip to content

Commit

Permalink
editors/kakoune: fix build on armv6/armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
clausecker authored and Tobias Kortkamp committed Oct 25, 2021
1 parent 7b7fe89 commit 13c431b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions editors/kakoune/files/patch-src_main.cc
@@ -0,0 +1,17 @@
--- src/main.cc.orig 2021-10-25 11:31:24 UTC
+++ src/main.cc
@@ -1249,8 +1249,12 @@ int main(int argc, char* argv[])
}

#if defined(__ELF__)
-asm(R"(
-.pushsection ".debug_gdb_scripts", "MS",@progbits,1
+#ifdef __arm__
+# define PROGBITS "%progbits"
+#else
+# define PROGBITS "@progbits"
+#endif
+asm(".pushsection \".debug_gdb_scripts\", \"MS\"," PROGBITS ",1" R"(
.byte 4
.ascii "kakoune-inline-gdb.py\n"
.ascii "import os.path\n"

0 comments on commit 13c431b

Please sign in to comment.