diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ArrayOfFrozenObjectsNode.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ArrayOfFrozenObjectsNode.cs index 8f616d98265a41..cecf9bd572f17e 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ArrayOfFrozenObjectsNode.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ArrayOfFrozenObjectsNode.cs @@ -32,6 +32,7 @@ protected override ObjectData GetDehydratableData(NodeFactory factory, bool relo return new ObjectData(Array.Empty(), Array.Empty(), 1, Array.Empty()); var builder = new ObjectDataBuilder(factory, relocsOnly); + builder.RequireInitialAlignment(factory.Target.PointerSize); builder.AddSymbol(this); foreach (FrozenObjectNode node in factory.MetadataManager.GetFrozenObjects()) { diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ObjectWriter.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ObjectWriter.cs index c0335bd1474705..784f60845e4c9f 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ObjectWriter.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ObjectWriter.cs @@ -446,6 +446,26 @@ private void EmitObject(string objectFilePath, IReadOnlyCollection