Sometimes script contains the following:
.foo : { a.o(.foo) *(.foo) }
This script must add .foo section from a.o first and all others after that
Without this patch .foo section from a.o will be added twice
Differential D23571
[ELF] Linkerscript: never add same input section to output section evgeny777 on Aug 16 2016, 9:41 AM. Authored by
Details
Sometimes script contains the following: .foo : { a.o(.foo) *(.foo) } This script must add .foo section from a.o first and all others after that
Diff Detail Event TimelineComment Actions We check for S->OutSec in getInputSections, so it seems that the input section list returned by createInputSectionList can never contain a section with an output section being set. Does this patch make actual difference? Comment Actions Currently you're accumulating sections in createInputSectionList before adding them to output section, remember? |