Home
last modified time | relevance | path

Searched refs:relocations (Results 1 – 8 of 8) sorted by relevance

/bionic/tools/relocation_packer/src/
Ddelta_encoder_unittest.cc17 std::vector<T>* relocations) { in AddRelocation() argument
22 relocations->push_back(relocation); in AddRelocation()
41 std::vector<typename ELF::Rela> relocations; in encode() local
46 codec.Encode(relocations, &packed); in encode()
51 AddRelocation(0xf00d0000, 11U, 10000, &relocations); in encode()
53 codec.Encode(relocations, &packed); in encode()
70 AddRelocation(0xf00d0004, 11U, 10012, &relocations); in encode()
73 codec.Encode(relocations, &packed); in encode()
90 AddRelocation(0xf00d0008, 41U, 10024, &relocations); in encode()
93 AddRelocation(0xf00d0010, 42U, 10000, &relocations); in encode()
[all …]
Dpacker_unittest.cc17 std::vector<typename ELF::Rela>* relocations) { in AddRelocation() argument
23 relocations->push_back(relocation); in AddRelocation()
40 std::vector<typename ELF::Rela> relocations; in DoPackNoAddend() local
44 AddRelocation<ELF>(0xd1ce0000, 0x11, 0, &relocations); in DoPackNoAddend()
46 AddRelocation<ELF>(0xd1ce0004, 0x11, 0, &relocations); in DoPackNoAddend()
47 AddRelocation<ELF>(0xd1ce0008, 0x11, 0, &relocations); in DoPackNoAddend()
49 AddRelocation<ELF>(0xd1ce0010, 0x11, 0, &relocations); in DoPackNoAddend()
50 AddRelocation<ELF>(0xd1ce0018, 0x11, 0, &relocations); in DoPackNoAddend()
51 AddRelocation<ELF>(0xd1ce0020, 0x11, 0, &relocations); in DoPackNoAddend()
56 packer.PackRelocations(relocations, &packed); in DoPackNoAddend()
[all …]
Ddelta_encoder.cc36 void RelocationDeltaCodec<ELF>::Encode(const std::vector<ElfRela>& relocations, in Encode() argument
38 if (relocations.size() == 0) in Encode()
43 packed->push_back(static_cast<ElfAddr>(relocations.size())); in Encode()
46 ElfAddr start_offset = relocations.size() > 1 ? in Encode()
47 relocations[0].r_offset - (relocations[1].r_offset - relocations[0].r_offset) : in Encode()
48 relocations[0].r_offset; in Encode()
56 for (size_t group_start = 0; group_start < relocations.size(); ) { in Encode()
64 DetectGroup(relocations, group_start, previous_offset, &group_size, &group_flags, in Encode()
86 CHECK((group_start + i) < relocations.size()); in Encode()
87 const ElfRela* relocation = &relocations[group_start + i]; in Encode()
[all …]
Dpacker.cc18 void RelocationPacker<ELF>::PackRelocations(const std::vector<typename ELF::Rela>& relocations, in PackRelocations() argument
23 codec.Encode(relocations, &packed_words); in PackRelocations()
48 std::vector<typename ELF::Rela>* relocations) { in UnpackRelocations() argument
61 codec.Decode(packed_words, relocations); in UnpackRelocations()
Ddelta_encoder.h108 static void Encode(const std::vector<ElfRela>& relocations,
115 std::vector<ElfRela>* relocations);
118 static void DetectGroup(const std::vector<ElfRela>& relocations,
Dpacker.h25 static void PackRelocations(const std::vector<typename ELF::Rela>& relocations,
32 std::vector<typename ELF::Rela>* relocations);
Delf_file.h70 bool PackTypedRelocations(std::vector<typename ELF::Rela>* relocations);
81 std::vector<typename ELF::Rela>* relocations);
Delf_file.cc688 std::vector<typename ELF::Rela> relocations; in PackRelocations() local
694 data->d_size / sizeof(typename ELF::Rel), &relocations); in PackRelocations()
699 relocations = std::vector<typename ELF::Rela>( in PackRelocations()
701 relocations_base + data->d_size / sizeof(relocations[0])); in PackRelocations()
708 return PackTypedRelocations(&relocations); in PackRelocations()
713 bool ElfFile<ELF>::PackTypedRelocations(std::vector<typename ELF::Rela>* relocations) { in PackTypedRelocations() argument
723 if (relocations->empty()) { in PackTypedRelocations()
730 const size_t initial_bytes = relocations->size() * rel_size; in PackTypedRelocations()
737 packer.PackRelocations(*relocations, &packed); in PackTypedRelocations()
781 CHECK(unpacked.size() == relocations->size()); in PackTypedRelocations()
[all …]