This is for fixing PR36297.
Issue itself is that if we have SECTIONS { .bar (a+b) : { *(.stub) } };
script and no section .stub, when LLD will remove .bar, but
produce output with undefined symbols a and b.
Differential D43069
[ELF] - Report error if removed empty output section declaration used undefined symbols. grimar on Feb 8 2018, 5:45 AM. Authored by
Details
This is for fixing PR36297. Issue itself is that if we have SECTIONS { .bar (a+b) : { *(.stub) } };
Diff Detail Event TimelineComment Actions This patch seems somewhat irrelevant to me because the issue you found is not actually related to the issue you described in the patch description. The issue you found is that we do not recognize "(INFO)" as a special tag, and that's different from ignoring symbols in dead sections. Comment Actions I described how I found it. Patch that adds support for "INFO" and all its aliases is D43071, but still if you have undefined symbol in expression, Comment Actions
|