Fix mscordbi metadata reader alignment bug on Linux. (#19070)
authorMike McLaughlin <mikem@microsoft.com>
Tue, 24 Jul 2018 19:19:59 +0000 (12:19 -0700)
committerGitHub <noreply@github.com>
Tue, 24 Jul 2018 19:19:59 +0000 (12:19 -0700)
commite6ada167d7991b1ab6e1ea921c521a691610e269
tree5da0a060e589d3b4b15c102baeee0d5b538d6166
parentc72f69b878cc071b6bf9b9c0764159b48be8a8ee
Fix mscordbi metadata reader alignment bug on Linux. (#19070)

Works fine on Windows minidumps, but on Linux (via OpenVirtualProcess
for production breakpoints and future core dumps) the compiler's struct
alignment rules are different. On Windows, classes/structs are aligned
based on the largest field. On Linux, they are 4 byte aligned regardless
of the field sizes.

https://github.com/dotnet/coreclr/issues/17692
src/md/datasource/datatargetreader.cpp
src/md/datasource/targettypes.cpp