Skip to content

Commit 270966b

Browse files
sjindel-googlecommit-bot@chromium.org
authored andcommitted
[vm] Fix Fuchsia build of elf_loader.
Change-Id: Ic48821bece19db81d1fa47c47ebfe433b9a577be Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128736 Reviewed-by: Samir Jindel <[email protected]> Commit-Queue: Samir Jindel <[email protected]>
1 parent c1f0b35 commit 270966b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/bin/elf_loader.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ bool LoadedElf::LoadSegments() {
428428
// file mapping: we must first unmap the existing mapping.
429429

430430
if (map_type == File::kReadWrite) {
431-
CHECK_ERROR(file_->SetPosition(file_start),
431+
CHECK_ERROR(mappable_->SetPosition(file_start),
432432
"Could not advance file position.");
433-
CHECK_ERROR(file_->ReadFully(memory_start, length),
433+
CHECK_ERROR(mappable_->ReadFully(memory_start, length),
434434
"Could not read file.");
435435
continue;
436436
}

0 commit comments

Comments
 (0)