diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-05-14 09:47:42 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-15 10:55:26 +0100 |
| commit | 86bfb2e8066685faa3971eed1dbdd28d180aca6d (patch) | |
| tree | d8eabd48c2b73774bd47d30dbc83408cf813ad86 | |
| parent | 62ef49172294dcef887b7a044f719926904ddb54 (diff) | |
| download | poky-86bfb2e8066685faa3971eed1dbdd28d180aca6d.tar.gz | |
valgrind: Fix build with clang
(From OE-Core rev: fbf60d5077bcf37df96b7b6358db8c30e073a656)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch | 31 | ||||
| -rw-r--r-- | meta/recipes-devtools/valgrind/valgrind_3.25.0.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch b/meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch new file mode 100644 index 0000000000..b59c544223 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 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 | ||
| 5 | assembly | ||
| 6 | |||
| 7 | '@' does not work with clang inline assembler, but '%' works with both | ||
| 8 | gcc and clang. Therefore use '%' to make it more portable | ||
| 9 | |||
| 10 | Fixes | ||
| 11 | <inline asm>:1:41: error: expected '%<type>' or "<type>" | ||
| 12 | |||
| 13 | Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=504222] | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | coregrind/vg_preloaded.c | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 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 | ||
| 23 | @@ -55,7 +55,7 @@ | ||
| 24 | /* Note: The "MS" section flags are to remove duplicates. */ | ||
| 25 | #define DEFINE_GDB_PY_SCRIPT(script_name) \ | ||
| 26 | asm("\ | ||
| 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\ | ||
| 31 | .popsection \n\ | ||
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.25.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.25.0.bb index 67166a4ef0..6650dcedbf 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.25.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.25.0.bb | |||
| @@ -25,6 +25,7 @@ SRC_URI = "https://sourceware.org/pub/valgrind/valgrind-${PV}.tar.bz2 \ | |||
| 25 | file://0001-memcheck-tests-Fix-timerfd-syscall-test.patch \ | 25 | file://0001-memcheck-tests-Fix-timerfd-syscall-test.patch \ |
| 26 | file://0001-docs-Disable-manual-validation.patch \ | 26 | file://0001-docs-Disable-manual-validation.patch \ |
| 27 | file://0001-tests-arm-Use-O-instead-of-O0.patch \ | 27 | file://0001-tests-arm-Use-O-instead-of-O0.patch \ |
| 28 | file://0001-Use-portable-syntax-for-pushsection-directive-in-inl.patch \ | ||
| 28 | " | 29 | " |
| 29 | SRC_URI[sha256sum] = "295f60291d6b64c0d90c1ce645634bdc5361d39b0c50ecf9de6385ee77586ecc" | 30 | SRC_URI[sha256sum] = "295f60291d6b64c0d90c1ce645634bdc5361d39b0c50ecf9de6385ee77586ecc" |
| 30 | UPSTREAM_CHECK_REGEX = "valgrind-(?P<pver>\d+(\.\d+)+)\.tar" | 31 | UPSTREAM_CHECK_REGEX = "valgrind-(?P<pver>\d+(\.\d+)+)\.tar" |
