misp64el build was SEGVing due to hitting a wonky codepath in clippy's
ELF magic.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
!/source
!/patches/
!/patches/xref_mips64el_pcrel.patch
-!/patches/sphinx-missing-overrides.patch
+!/patches/xref_symvalid.patch
/*.log
/*.substvars
* commit to git tarball as source instead of dist tarball
* ditch unneeded sphinx missing files patch
+ * fix clippy symbol lookup issue (build SEGV on mips64el)
-- David Lamparter <equinox-debian@diac24.net> Thu, 05 Jan 2023 17:44:59 +0100
xref_mips64el_pcrel.patch
+xref_symvalid.patch
--- /dev/null
+diff --git a/lib/elf_py.c b/lib/elf_py.c
+index 75d2d6007f83..7c503cfb9db3 100644
+--- a/lib/elf_py.c
++++ b/lib/elf_py.c
+@@ -293,7 +293,7 @@ static PyObject *elfreloc_getsection(PyObject *self, PyObject *args)
+ if (!w->es)
+ Py_RETURN_NONE;
+
+- if (w->symidx == 0) {
++ if (!w->symvalid || w->symidx == 0) {
+ size_t idx = 0;
+ Elf_Scn *scn;
+