src/main.cc: Fix inline assembly syntax error on ARM
ARM uses @ as a comment character, so %progbits must be used in place of @progbits here. This change fixes the build on armv7 FreeBSD 13.0. Fixes mawww/kakoune/issues#4385 See also https://bugs.freebsd.org/259434
This commit is contained in:
parent
6e635ea301
commit
120e4b5a5d
|
@ -1249,8 +1249,12 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__ELF__)
|
#if defined(__ELF__)
|
||||||
asm(R"(
|
#ifdef __arm__
|
||||||
.pushsection ".debug_gdb_scripts", "MS",@progbits,1
|
# define PROGBITS "%progbits"
|
||||||
|
#else
|
||||||
|
# define PROGBITS "@progbits"
|
||||||
|
#endif
|
||||||
|
asm(".pushsection \".debug_gdb_scripts\", \"MS\"," PROGBITS ",1" R"(
|
||||||
.byte 4
|
.byte 4
|
||||||
.ascii "kakoune-inline-gdb.py\n"
|
.ascii "kakoune-inline-gdb.py\n"
|
||||||
.ascii "import os.path\n"
|
.ascii "import os.path\n"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user