[llvm-bugs] [Bug 36190] New: Fix assertion for symbol-ordering-file + some linker scripts

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 1 06:13:39 PST 2018


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

            Bug ID: 36190
           Summary: Fix assertion for symbol-ordering-file + some linker
                    scripts
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: llvm-bugs at lists.llvm.org

Regression caused by r323779. If --symbol-ordering-file is specified and a
linker script includes one more than one sub-command for any output section,
then LLD fires the following assertion:

Assertion failed: SectionCommands.size() == 1, file
C:\llvm\llvm\tools\lld\ELF\OutputSections.cpp, line 163

I will upload an example test extension to Phabricator to demonstrate. An
example script would be either of the following:

SECTIONS { .foo : { *(.foo); *(.foo.*) } }
SECTIONS { .foo : { BYTE(0x33); *(.foo); BYTE(0x44) } }

The sorting should be applied on each InputSectionDescription individually
within an OutputSection, and the sort() function should not assume only one
Command in an OutputSection.

-- 
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/20180201/cc2966c5/attachment.html>


More information about the llvm-bugs mailing list