diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-04-14 22:11:35 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2021-04-14 22:11:35 +1200 |
commit | d95d0497db9a26da864a38f5b2ddea02d241b366 (patch) | |
tree | 00ad931a551e6b2fb50abe56f964ef7ddd7f9a9c /packages/ltrace | |
parent | f582f1c22d4e79edb15f14c1cc282cc7cc77f241 (diff) | |
download | crosstool-ng-d95d0497db9a26da864a38f5b2ddea02d241b366.tar.gz crosstool-ng-d95d0497db9a26da864a38f5b2ddea02d241b366.tar.bz2 crosstool-ng-d95d0497db9a26da864a38f5b2ddea02d241b366.zip |
ltrace: Add patch to fix compile error for mips
Newer versions of GCC complain:
plt.c: In function 'arch_elf_add_plt_entry':
plt.c:359:3: error: '%s' directive argument is null [-Werror=format-overflow=]
359 | fprintf(stderr, "%s: failed %s(%#llx): %sn", __func__,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
360 | name, addr, strerror(errno));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
add a patch to avoid this error.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/ltrace')
-rw-r--r-- | packages/ltrace/0.7.3/0008-mips-printf-format.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/ltrace/0.7.3/0008-mips-printf-format.patch b/packages/ltrace/0.7.3/0008-mips-printf-format.patch new file mode 100644 index 00000000..6875392f --- /dev/null +++ b/packages/ltrace/0.7.3/0008-mips-printf-format.patch @@ -0,0 +1,14 @@ +diff -Naur ltrace-0.7.3-orig/sysdeps/linux-gnu/mips/plt.c ltrace-0.7.3/sysdeps/linux-gnu/mips/plt.c +--- ltrace-0.7.3-orig/sysdeps/linux-gnu/mips/plt.c 2013-09-17 11:04:28.000000000 +1200 ++++ ltrace-0.7.3/sysdeps/linux-gnu/mips/plt.c 2021-04-14 22:05:45.950413823 +1200 +@@ -356,8 +356,8 @@ + + name = strdup(a_name); + if (name == NULL) { +- fprintf(stderr, "%s: failed %s(%#llx): %s\n", __func__, +- name, addr, strerror(errno)); ++ fprintf(stderr, "%s: failed (%#llx): %s\n", __func__, ++ addr, strerror(errno)); + goto fail; + } + |