From 4ad8c480ac1a4bffce94b41e5d4d0579b7dddddf Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 11 Jun 2024 16:41:10 -0500 Subject: system/binutils: Fix format specifiers in libctf Closes: #1181 --- system/binutils/libctf-32bit-test.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 system/binutils/libctf-32bit-test.patch (limited to 'system/binutils/libctf-32bit-test.patch') diff --git a/system/binutils/libctf-32bit-test.patch b/system/binutils/libctf-32bit-test.patch new file mode 100644 index 000000000..788c46259 --- /dev/null +++ b/system/binutils/libctf-32bit-test.patch @@ -0,0 +1,27 @@ +We need to use the proper format specifiers. + +Upstream-Status: Pending +Upstream-URL: https://sourceware.org/bugzilla/show_bug.cgi?id=31882 + +--- binutils-2.41/libctf/testsuite/libctf-lookup/struct-iteration.c.old 2023-07-02 18:00:00.000000000 -0500 ++++ binutils-2.41/libctf/testsuite/libctf-lookup/struct-iteration.c 2024-06-11 16:22:32.976649333 -0500 +@@ -53,7 +53,7 @@ + { + char *type_name = ctf_type_aname (fp, membtype); + +- printf ("next test: %s, offset %lx, has type %lx/%s\n", ++ printf ("next test: %s, offset %zi, has type %lx/%s\n", + name, offset, membtype, type_name); + free (type_name); + } +--- binutils-2.41/libctf/testsuite/libctf-lookup/unnamed-field-info.c.old 2023-07-02 18:00:00.000000000 -0500 ++++ binutils-2.41/libctf/testsuite/libctf-lookup/unnamed-field-info.c 2024-06-11 16:23:19.191708550 -0500 +@@ -16,7 +16,7 @@ + goto err; + + if (mi.ctm_offset != offset * 8) +- fprintf (stderr, "field %s inconsistency: offsetof() says %zi bits, CTF says %zi\n", ++ fprintf (stderr, "field %s inconsistency: offsetof() says %zi bits, CTF says %li\n", + name, offset * 8, mi.ctm_offset); + + return; -- cgit v1.2.3-70-g09d2