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

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

Issue 340523003: Support for unpacked ARM packed relocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fork_switch
Patch Set: Update for review feedback 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_relocations.h
diff --git a/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h b/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h
index edf2f4bffd01e476f60f8e833c428a5c51c2ab01..edb64613420a74f0fae150162dafe120e842b310 100644
--- a/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h
+++ b/third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.h
@@ -6,6 +6,7 @@
#define CRAZY_LINKER_ELF_RELOCATIONS_H
#include <string.h>
+#include <unistd.h>
#include "elf_traits.h"
@@ -43,6 +44,15 @@ class ElfRelocations {
SymbolResolver* resolver,
Error* error);
+#ifdef __arm__
+ // Apply ARM packed relocations. These are in addition to any applied
+ // by ApplyAll().
+ // |arm_packed_relocs| is a pointer to packed relocations data.
+ // On error, return false and set |error| message.
+ bool ApplyArmPackedRelocs(const uint8_t* arm_packed_relocs,
+ Error* error);
+#endif
+
// This function is used to adjust relocated addresses in a copy of an
// existing section of an ELF binary. I.e. |src_addr|...|src_addr + size|
// must be inside the mapped ELF binary, this function will first copy its

Powered by Google App Engine
This is Rietveld 408576698