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

            Bug ID: 27016
           Summary: segfault in Writer<ELFT>::copyLocalSymbols() building
                    FreeBSD/i386 with lld, due to local undefined symbol
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 23214
    Classification: Unclassified

Created attachment 16065
  --> https://llvm.org/bugs/attachment.cgi?id=16065&action=edit
test case demonstrating lld segfault

Building FreeBSD/i386 with lld resulted in a segfault in lld in
copyLocalSymbols() at:

if (!F->getSection(Sym)->Live)

because F->getSection(Sym) returns nullptr.

Reproducible with the attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to