Currently we crash when we have an object with SHT_SYMTAB/SHT_DYNSYM sections
of size 0.
With this patch instead of the crash we start to dump them properly.
Differential D93697
[obj2yaml] - Don't crash when an object has an empty symbol table. grimar on Dec 22 2020, 6:44 AM. Authored by
Details Currently we crash when we have an object with SHT_SYMTAB/SHT_DYNSYM sections With this patch instead of the crash we start to dump them properly.
Diff Detail Event TimelineComment Actions According to http://www.sco.com/developers/gabi/latest/ch4.symtab.html , an empty SHT_SYMTAB/SHT_DYNSYM is non-conforming.
Comment Actions
Right.
No, because yaml2obj doesn't accept "Symbols" and "Size" together. "Symbols: []" means we have a zero entry actually.
I guess we will need to get rid of "Symbols" and "DynamicSymbols" tags and move these keys to corresponding sections.
|
A symbol table without index 0 is non-conforming, according to http://www.sco.com/developers/gabi/latest/ch4.symtab.html