Fix mscordbi metadata reader alignment bug on Linux. (dotnet/coreclr#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)
commit38d4f6e67975e1c0b77c86295c9939b16c7ba2e5
tree6034cae9135cab0a29e3281287b630adf9f897aa
parent37a02973d07d534d84c47be8470d13164cf69cf2
Fix mscordbi metadata reader alignment bug on Linux. (dotnet/coreclr#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

Commit migrated from https://github.com/dotnet/coreclr/commit/e6ada167d7991b1ab6e1ea921c521a691610e269
src/coreclr/src/md/datasource/datatargetreader.cpp
src/coreclr/src/md/datasource/targettypes.cpp