| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Run-length encode and decode relative relocations. | 5 // Run-length encode and decode relative relocations. |
| 6 // | 6 // |
| 7 // Relative relocations are the bulk of dynamic relocations (the | 7 // Relative relocations are the bulk of dynamic relocations (the |
| 8 // .rel.dyn or .rela.dyn sections) in libchrome.<version>.so, and the ELF | 8 // .rel.dyn or .rela.dyn sections) in libchrome.<version>.so, and the ELF |
| 9 // standard representation of them is wasteful. .rel.dyn contains | 9 // standard representation of them is wasteful. .rel.dyn contains |
| 10 // relocations without addends, .rela.dyn relocations with addends. | 10 // relocations without addends, .rela.dyn relocations with addends. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Decode relative relocations from their more compact form. | 72 // Decode relative relocations from their more compact form. |
| 73 // |packed| is the vector of packed relocations. | 73 // |packed| is the vector of packed relocations. |
| 74 // |relocations| is a vector of unpacked relative relocation structs. | 74 // |relocations| is a vector of unpacked relative relocation structs. |
| 75 static void Decode(const std::vector<ELF::Xword>& packed, | 75 static void Decode(const std::vector<ELF::Xword>& packed, |
| 76 std::vector<ELF::Rel>* relocations); | 76 std::vector<ELF::Rel>* relocations); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace relocation_packer | 79 } // namespace relocation_packer |
| 80 | 80 |
| 81 #endif // TOOLS_RELOCATION_PACKER_SRC_RUN_LENGTH_ENCODER_H_ | 81 #endif // TOOLS_RELOCATION_PACKER_SRC_RUN_LENGTH_ENCODER_H_ |
| OLD | NEW |