1 From 2089383a0e3a50f527337ea05188b3e302069888 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Wed, 14 May 2025 09:29:33 -0700
4 Subject: [PATCH] Use portable syntax for pushsection directive in inline
7 '@' does not work with clang inline assembler, but '%' works with both
8 gcc and clang. Therefore use '%' to make it more portable
11 <inline asm>:1:41: error: expected '%<type>' or "<type>"
13 Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=504222]
14 Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 coregrind/vg_preloaded.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
19 diff --git a/coregrind/vg_preloaded.c b/coregrind/vg_preloaded.c
20 index 5bec51d..e4c2dbc 100644
21 --- a/coregrind/vg_preloaded.c
22 +++ b/coregrind/vg_preloaded.c
24 /* Note: The "MS" section flags are to remove duplicates. */
25 #define DEFINE_GDB_PY_SCRIPT(script_name) \
27 -.pushsection \".debug_gdb_scripts\", \"MS\",@progbits,1\n\
28 +.pushsection \".debug_gdb_scripts\", \"MS\",%progbits,1\n\
29 .byte 1 /* Python */\n\
30 .asciz \"" script_name "\"\n\