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: unassignedb...@nondot.org
Reporter: jh7370.2...@my.bristol.ac.uk
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs