53d546d979
The Dart VM uses two dynamic symbols, _kDartVmSnapshotInstructions and _kDartIsolateSnapshotInstructions, to store the virtual addresses of the start of these sections. By using these symbols to find the sections, we don't bake in the assumption that the two sections appear as distinct .text segments or an assumption about the order in which they appear. Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-mac-release-simarm64-try,vm-kernel-precomp-win-release-x64-try Change-Id: I02c4d61a1cf743e2455252df16a47dbb5c718195 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134165 Commit-Queue: Teagan Strickland <sstrickl@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>