[release/6.0] Add alignment to mapped field stream (#64559)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 8 Feb 2022 02:09:33 +0000 (18:09 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Feb 2022 02:09:33 +0000 (18:09 -0800)
commit69edc600b82151678e396a660728d95b88c61fe0
tree145da500057112e33de31f958a7dc2464025c7fd
parentdbda62ffec6db930153e234b817b9f740f363522
[release/6.0] Add alignment to mapped field stream (#64559)

* Align MappeFieldDataStream at 8 byte boundary

* Add test to verify that the mapped field rva data blob is aligned to ManagedPEBuilder.MappedFieldDataAlignment

* Only align when the mapped field data is of size not equal to 0

* Adding Servicing changes for S.R.M

Co-authored-by: David Wrighton <davidwr@microsoft.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
src/libraries/System.Reflection.Metadata/src/System.Reflection.Metadata.csproj
src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/ManagedTextSection.cs
src/libraries/System.Reflection.Metadata/tests/PortableExecutable/PEBuilderTests.cs