Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: third_party/android_crazy_linker/src/src/crazy_linker_elf_view.h

Issue 328153002: Roll to android/platform/ndk/681f1b744aec1b0888f4c7a68165720db9670300 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fork
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/android_crazy_linker/src/src/crazy_linker_elf_view.h
diff --git a/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.h b/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.h
index c60dd6ea427ecc30f56fe53f6753776f42d7f750..7bb3f0a65dbc36d51fe2f079bd62bbd2be7dc741 100644
--- a/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.h
+++ b/third_party/android_crazy_linker/src/src/crazy_linker_elf_view.h
@@ -35,7 +35,7 @@ class ElfView {
// appropriate values. Note that functions phdr() or dynamic() will always
// return an address relative to |load_address|, even if the binary was
// not loaded yet in the process.
- bool InitUnmapped(size_t load_address,
+ bool InitUnmapped(ELF::Addr load_address,
const ELF::Phdr* phdr,
size_t phdr_count,
Error* error);
@@ -75,7 +75,7 @@ class ElfView {
ELF::Addr GetValue() const { return dyn_->d_un.d_val; }
ELF::Addr* GetValuePointer() const {
- return const_cast<ELF::Addr*>(&dyn_->d_un.d_val);
+ return const_cast<ELF::Addr*>(&dyn_->d_un.d_ptr);
}
uintptr_t GetOffset() const { return dyn_->d_un.d_ptr; }
@@ -98,8 +98,8 @@ class ElfView {
size_t phdr_count_;
const ELF::Dyn* dynamic_;
size_t dynamic_count_;
- size_t dynamic_flags_;
- size_t load_address_;
+ ELF::Word dynamic_flags_;
+ ELF::Addr load_address_;
size_t load_size_;
size_t load_bias_;
};

Powered by Google App Engine
This is Rietveld 408576698