[x86/Linux] Fix marshalling struct with 64-bit types (#17455)
authorKonstantin Baladurin <k.baladurin@partner.samsung.com>
Mon, 16 Apr 2018 18:11:41 +0000 (21:11 +0300)
committerJan Kotas <jkotas@microsoft.com>
Mon, 16 Apr 2018 18:11:41 +0000 (11:11 -0700)
commitaf74af2f4a01341fce78bcaac370d497f4f511b1
treec87ede1b55e2ca5e3f08bfe04a2ab01a81fa9935
parentae51c7aab9ce5f6b30642848d444893a521441f1
[x86/Linux] Fix marshalling struct with 64-bit types (#17455)

* [x86/Linux] Fix marshalling struct with 64-bit types

The System V ABI for i386 defines 4-byte alignment for 64-bit types.

* [Linux/x86] Fix marshalling tests in the case of System V i386 ABI
src/vm/fieldmarshaler.cpp
src/vm/fieldmarshaler.h
tests/src/CoreMangLib/cti/system/runtime/interopservices/marshal/marshalsizeof1.cs
tests/src/CoreMangLib/cti/system/runtime/interopservices/marshal/marshalsizeof2.cs
tests/src/Interop/MarshalAPI/OffsetOf/OffsetOf.cs
tests/src/Interop/StructPacking/StructPacking.cs