Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720280 - <sys-devel/binutils-2.35: Backport RISC-V ld segfault fix
Summary: <sys-devel/binutils-2.35: Backport RISC-V ld segfault fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/PR25900
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-01 13:28 UTC by David Michael
Modified: 2020-05-01 21:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2020-05-01 13:28:00 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2020-05-01 21:44:04 UTC
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(+)
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-01 21:45:12 UTC
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.