From: Khem Raj Date: Wed, 14 May 2025 16:29:33 +0000 (-0700) Subject: Use portable syntax for pushsection directive in inline assembly X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fa8581c4974db57de80de915d16ce299eb9aa84;p=thirdparty%2Fvalgrind.git Use portable syntax for pushsection directive in inline assembly '@' does not work with clang inline assembler, but '%' works with both gcc and clang. Therefore use '%' to make it more portable Fixes :1:41: error: expected '%' or "" Signed-off-by: Khem Raj --- diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c index 5bec51d76..e4c2dbc21 100644 --- a/coregrind/vg_preloaded.c +++ b/coregrind/vg_preloaded.c @@ -55,7 +55,7 @@ /* Note: The "MS" section flags are to remove duplicates. */ #define DEFINE_GDB_PY_SCRIPT(script_name) \ asm("\ -.pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n\ +.pushsection \".debug_gdb_scripts\", \"MS\",%progbits,1\n\ .byte 1 /* Python */\n\ .asciz \"" script_name "\"\n\ .popsection \n\