Two R2RDump fixes for Crossgen output (dotnet/coreclr#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)
commit341a8d2122ab39ec6d0f8f78d83a6c1f9c212cbb
treec9d52902bcdd7d4553187594bc368e2ec251fc6c
parent999a8f07acc7c493a5995b058c3e033edb3a7a1b
Two R2RDump fixes for Crossgen output (dotnet/coreclr#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

Commit migrated from https://github.com/dotnet/coreclr/commit/d22330a146dd3be30690b72be44f25e6b4bebe14
src/coreclr/src/tools/r2rdump/R2RReader.cs