summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/elf_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/elf_file.cc b/runtime/elf_file.cc
index c646b86524..20bb6e3e2a 100644
--- a/runtime/elf_file.cc
+++ b/runtime/elf_file.cc
@@ -1063,7 +1063,7 @@ void ElfFile::GdbJITSupport() {
for (uint32_t i = 0; i < segments_.size(); i++) {
if (segments_[i]->GetProtect() & PROT_EXEC) {
// We found the .text section.
- text_start_addr = reinterpret_cast<uint32_t>(segments_[i]->Begin());
+ text_start_addr = PointerToLowMemUInt32(segments_[i]->Begin());
break;
}
}