[llvm-bugs] [Bug 38918] New: lld crashes (nullptr derference) when linking kernel with --icf=all

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 12 11:29:19 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38918

            Bug ID: 38918
           Summary: lld crashes (nullptr derference) when linking kernel
                    with --icf=all
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: phosek at chromium.org
                CC: llvm-bugs at lists.llvm.org

It's a null pointer crash in lld::elf::InputSection::copyRelocations:

=>      P->r_addend = Sym.getVA(Addend) - Section->getOutputSection()->Addr;

Looks like getOutputSection returned nullptr.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180912/a9aa84f5/attachment-0001.html>


More information about the llvm-bugs mailing list