Skip to content

Commit

Permalink
[vm] Fix Fuchsia build of elf_loader.
Browse files Browse the repository at this point in the history
Change-Id: Ic48821bece19db81d1fa47c47ebfe433b9a577be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128736
Reviewed-by: Samir Jindel <sjindel@google.com>
Commit-Queue: Samir Jindel <sjindel@google.com>
  • Loading branch information
sjindel-google authored and commit-bot@chromium.org committed Dec 18, 2019
1 parent c1f0b35 commit 270966b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/bin/elf_loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ bool LoadedElf::LoadSegments() {
// file mapping: we must first unmap the existing mapping.

if (map_type == File::kReadWrite) {
CHECK_ERROR(file_->SetPosition(file_start),
CHECK_ERROR(mappable_->SetPosition(file_start),
"Could not advance file position.");
CHECK_ERROR(file_->ReadFully(memory_start, length),
CHECK_ERROR(mappable_->ReadFully(memory_start, length),
"Could not read file.");
continue;
}
Expand Down

0 comments on commit 270966b

Please sign in to comment.