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.
Paths
| Differential D25513
[ELF] - Improve diagnostics on duplicate STT_SECTION symbol. AbandonedPublic Authored by grimar on Oct 12 2016, 5:32 AM.
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
Latest changes in LLD allowed to simplify this. Is it ok now ? grimar retitled this revision from [ELF] - Do not crash on duplicate STT_SECTION symbol. to [ELF] - Improve diagnostics on duplicate STT_SECTION symbol..Nov 15 2016, 1:02 AM
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
Revision Contents
Diff 74366 ELF/InputFiles.cpp
ELF/SymbolTable.h
ELF/SymbolTable.cpp
test/ELF/invalid/report-duplicates.test
|
This error message doesn't make sense.