Two R2RDump fixes for Crossgen output (#19585)
authorTomáš Rylek <trylek@microsoft.com>
Thu, 23 Aug 2018 19:23:42 +0000 (21:23 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Aug 2018 19:23:42 +0000 (21:23 +0200)
commitd22330a146dd3be30690b72be44f25e6b4bebe14
tree7a5556879107c0ae4b21167ca4edfb77cbc3834f
parenta7664abb5eb5ad4c435d11cc3959b1d2667ba811
Two R2RDump fixes for Crossgen output (#19585)

1) In some situations, Crossgen emits a section with EntrySize = 0.
Apparently the engine defaults to size_t in such case.

2) Similarly, Crossgen sometimes emits a section with the UNKNOWN
kind. I have relaxed the section kind check to just treat all
non-eager section kinds the same.

Thanks

Tomas
src/tools/r2rdump/R2RReader.cs