Emit pointer alignment before config knobs (#87360)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Sat, 10 Jun 2023 18:29:16 +0000 (21:29 +0300)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2023 18:29:16 +0000 (11:29 -0700)
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/RuntimeConfigurationRootProvider.cs

index de64f9e..d75b780 100644 (file)
@@ -62,6 +62,7 @@ namespace ILCompiler
             public override ObjectData GetData(NodeFactory factory, bool relocsOnly = false)
             {
                 var builder = new ObjectDataBuilder(factory.TypeSystemContext.Target, relocsOnly);
+                builder.RequireInitialPointerAlignment();
                 builder.AddSymbol(this);
 
                 var settings = new Dictionary<string, ISymbolNode>();