The linker has a null pointer dereference that I hit while compiling a UEFI kernel. It was fixed upstream in https://sourceware.org/bugzilla/show_bug.cgi?id=25900 . Please backport the patch in the linked URL, or this can be closed when binutils is updated to 2.35. Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de6868dc18e5f0a9471d357ab9906eef83a3149e commit de6868dc18e5f0a9471d357ab9906eef83a3149e Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-05-01 21:43:42 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-05-01 21:43:58 +0000 sys-devel/binutils: fix RISC-V ld crash, bug #720280 It's a direct backport of upstream's a2714d6cca1f1c7 ("PR25900, RISC-V: null pointer dereference") Reported-by: David Michael Closes: https://bugs.gentoo.org/720280 Bug: https://sourceware.org/PR25900 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/binutils/binutils-2.34.ebuild | 1 + .../binutils/files/binutils-2.34-riscv-SEGV.patch | 40 ++++++++++++++++++++++ 2 files changed, 41 insertions(+)
I pushed it to 2.34 without a revbump. You might need to rebuild binutils explicitly to get the fix until we revbump it when enough changes accumulate.