bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/25900] New: RISC-V: null pointer dereference in ld


From: fedora.dm0 at gmail dot com
Subject: [Bug ld/25900] New: RISC-V: null pointer dereference in ld
Date: Thu, 30 Apr 2020 15:46:59 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25900

            Bug ID: 25900
           Summary: RISC-V: null pointer dereference in ld
           Product: binutils
           Version: 2.34
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: fedora.dm0 at gmail dot com
  Target Milestone: ---

Created attachment 12496
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12496&action=edit
Fix null pointer dereference

(Sorry for double-posting between this and the mailing list; I forgot I had a
bugzilla account here.)

I tried to test the Linux RISC-V UEFI stub by cross-compiling this branch with
binutils 2.34 and GCC 9.3.0:

    https://github.com/atishp04/linux/tree/uefi_riscv_pr

It results in a segfault in ld while linking vmlinux because the pointer
h->root.u.def.section is NULL in one instance.  The attached patch fixes the
segfault and results in a usable UEFI kernel, but I am not familiar with this
code, so I don't know if it is the correct behavior.

Can someone verify this?  Let me know if you need configs etc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]