diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs index 3ded29612dadc..7b491fad1dc27 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs @@ -535,9 +535,7 @@ public void PublishUnwindInfo(ObjectNode node) byte[] blobSymbolName = _sb.Append(_currentNodeZeroTerminatedName).ToUtf8String().UnderlyingArray; - ObjectNodeSection section = ObjectNodeSection.XDataSection; - if (ShouldShareSymbol(node)) - section = GetSharedSection(section, _sb.ToString()); + ObjectNodeSection section = GetSharedSection(ObjectNodeSection.XDataSection, _sb.ToString()); SwitchSection(_nativeObjectWriter, section.Name, GetCustomSectionAttributes(section), section.ComdatName); EmitAlignment(4);