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

Unified Diff: tools/relocation_packer/src/packer.h

Issue 404553003: Create builds configured for ARM and AARCH64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename DT tags to DT_ANDROID_REL_XXX Created 6 years, 5 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
« no previous file with comments | « tools/relocation_packer/src/main.cc ('k') | tools/relocation_packer/src/packer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/relocation_packer/src/packer.h
diff --git a/tools/relocation_packer/src/packer.h b/tools/relocation_packer/src/packer.h
index f0342cd078f5924658b187cb7b794d4452e1d510..21e4de1a32e5e3d5f08496ea974b010bd8d52bda 100644
--- a/tools/relocation_packer/src/packer.h
+++ b/tools/relocation_packer/src/packer.h
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Pack R_ARM_RELATIVE relocations into a more compact form.
+// Pack ARM relative relocations into a more compact form.
//
// Applies two packing strategies. The first is run-length encoding, which
-// turns a large set of R_ARM_RELATIVE relocations into a much smaller set
+// turns a large set of ARM relative relocations into a much smaller set
// of delta-count pairs, prefixed with a two-word header comprising the
// count of pairs and the initial relocation offset. The second is LEB128
// encoding, which compacts the result of run-length encoding.
@@ -22,28 +22,28 @@
#define TOOLS_RELOCATION_PACKER_SRC_PACKER_H_
#include <stdint.h>
-#include <string.h>
#include <vector>
#include "elf.h"
+#include "elf_traits.h"
namespace relocation_packer {
-// A RelocationPacker packs vectors of R_ARM_RELATIVE relocations into more
+// A RelocationPacker packs vectors of ARM relative relocations into more
// compact forms, and unpacks them to reproduce the pre-packed data.
class RelocationPacker {
public:
- // Pack R_ARM_RELATIVE relocations into a more compact form.
- // |relocations| is a vector of R_ARM_RELATIVE relocation structs.
+ // Pack ARM relative relocations into a more compact form.
+ // |relocations| is a vector of ARM relative relocation structs.
// |packed| is the vector of packed bytes into which relocations are packed.
- static void PackRelativeRelocations(const std::vector<Elf32_Rel>& relocations,
+ static void PackRelativeRelocations(const std::vector<ELF::Rel>& relocations,
std::vector<uint8_t>* packed);
- // Unpack R_ARM_RELATIVE relocations from their more compact form.
+ // Unpack ARM relative relocations from their more compact form.
// |packed| is the vector of packed relocations.
- // |relocations| is a vector of unpacked R_ARM_RELATIVE relocation structs.
+ // |relocations| is a vector of unpacked ARM relative relocation structs.
static void UnpackRelativeRelocations(const std::vector<uint8_t>& packed,
- std::vector<Elf32_Rel>* relocations);
+ std::vector<ELF::Rel>* relocations);
};
} // namespace relocation_packer
« no previous file with comments | « tools/relocation_packer/src/main.cc ('k') | tools/relocation_packer/src/packer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698