summaryrefslogtreecommitdiff
path: root/system/binutils/libctf-32bit-test.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-06-11 16:41:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-07 10:08:21 -0500
commit4ad8c480ac1a4bffce94b41e5d4d0579b7dddddf (patch)
treecba71c7c981403349eada192284c48244cfe6bbb /system/binutils/libctf-32bit-test.patch
parentc309a319c257b2a73b261bb94e1886187296b86f (diff)
downloadpackages-4ad8c480ac1a4bffce94b41e5d4d0579b7dddddf.tar.gz
packages-4ad8c480ac1a4bffce94b41e5d4d0579b7dddddf.tar.bz2
packages-4ad8c480ac1a4bffce94b41e5d4d0579b7dddddf.tar.xz
packages-4ad8c480ac1a4bffce94b41e5d4d0579b7dddddf.zip
system/binutils: Fix format specifiers in libctf
Closes: #1181
Diffstat (limited to 'system/binutils/libctf-32bit-test.patch')
-rw-r--r--system/binutils/libctf-32bit-test.patch27
1 files changed, 27 insertions, 0 deletions
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;