Skip to content

Commit 4defc8b

Browse files
authored
Include the end symbol's size in the range. (#121324)
1 parent 9f1cab7 commit 4defc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/tools/Common/Compiler/ObjectWriter/ObjectWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public void EmitObject(Stream outputFileStream, IReadOnlyCollection<DependencyNo
518518
}
519519

520520
// Don't use SectionWriter here as it emits symbols relative to the current writing position.
521-
EmitSymbolDefinition(startSymbol.SectionIndex, rangeNodeName, startSymbol.Value, checked((int)(endSymbol.Value - startSymbol.Value)));
521+
EmitSymbolDefinition(startSymbol.SectionIndex, rangeNodeName, startSymbol.Value, checked((int)(endSymbol.Value - startSymbol.Value + endSymbol.Size)));
522522
}
523523

524524
foreach (BlockToRelocate blockToRelocate in blocksToRelocate)

0 commit comments

Comments
 (0)