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

Unified Diff: tools/relocation_packer/src/run_length_encoder.cc

Issue 410933004: Extend relocation packing to cover arm64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Script 'golden' test data generation 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
Index: tools/relocation_packer/src/run_length_encoder.cc
diff --git a/tools/relocation_packer/src/run_length_encoder.cc b/tools/relocation_packer/src/run_length_encoder.cc
index 2d68bf4c1e892e4a4ea35a192bfad76428f6d931..5b9e39e4a4e7e63b840fd5ae0a9228418005c4da 100644
--- a/tools/relocation_packer/src/run_length_encoder.cc
+++ b/tools/relocation_packer/src/run_length_encoder.cc
@@ -14,7 +14,7 @@ namespace relocation_packer {
namespace {
// Generate a vector of deltas between the r_offset fields of adjacent
-// ARM relative relocations.
+// relative relocations.
void GetDeltas(const std::vector<ELF::Rel>& relocations,
std::vector<ELF::Addr>* deltas) {
CHECK(relocations.size() >= 2);
@@ -92,7 +92,7 @@ void Uncondense(ELF::Addr addr,
} // namespace
-// Encode ARM relative relocations into a run-length encoded (packed)
+// Encode relative relocations into a run-length encoded (packed)
// representation.
void RelocationRunLengthCodec::Encode(const std::vector<ELF::Rel>& relocations,
std::vector<ELF::Xword>* packed) {
@@ -116,7 +116,7 @@ void RelocationRunLengthCodec::Encode(const std::vector<ELF::Rel>& relocations,
packed->at(0) = (packed->size() - 2) >> 1;
}
-// Decode ARM relative relocations from a run-length encoded (packed)
+// Decode relative relocations from a run-length encoded (packed)
// representation.
void RelocationRunLengthCodec::Decode(const std::vector<ELF::Xword>& packed,
std::vector<ELF::Rel>* relocations) {

Powered by Google App Engine
This is Rietveld 408576698