Global symbols of type STT_SECTION has section field null when reference
relocation sections, for which we do not create input sections:
- Type: STT_SECTION Section: .rela.text
In case of duplicate symbol lld crashed trying to access nullptr.
Differential D25513
[ELF] - Improve diagnostics on duplicate STT_SECTION symbol. grimar on Oct 12 2016, 5:32 AM. Authored by
Details
Diff Detail Event TimelineComment Actions This is not an obvious patch to handle corrupted input, so I'm honestly not in favor of it.
Comment Actions How were we crashing? The empty name I assume is orthogonal, no? Both symbols could be named foo for example. Comment Actions Given that no well behaved producer creates a global STT_SECTION and |
This error message doesn't make sense.