This patch restricts following construction:
/DISCARD/ : { *(COMMON) }
Previously LLD would crash.
Differential D36468
[ELF] - Linkerscript: disallow discarding COMMON. grimar on Aug 8 2017, 7:37 AM. Authored by
Details This patch restricts following construction: /DISCARD/ : { *(COMMON) } Previously LLD would crash.
Diff Detail
Event TimelineComment Actions What's the use case for discarding common symbols? Comment Actions I do not know about real use case, I worked on a D36466 and tried to discard COMMON during work on that
Yes. Comment Actions I'm lukewarm about this change. Such linker script doesn't make sense, so doing something for such nonsense seems to be just increasing the complexity of the code. You might still want to fix a crash bug, but attempting to do "the right thing" for this doesn't seem to worth it. |