Lines Matching defs:packed

30 // android packed relocations section.
185 // Notes of the dynamic relocations, packed relocations, and .dynamic
216 // Note if relocation section is already packed
394 // from adjusting it unnecessarily if run on a packed file. If
675 // Remove relative entries from dynamic relocations and write as packed
676 // data into android packed relocations.
687 // we always pack rela, because packed format is pretty much the same
717 LOG(INFO) << "Relocation table is already packed";
722 // the shared object has already been packed?
733 std::vector<uint8_t> packed;
737 packer.PackRelocations(*relocations, &packed);
738 const size_t packed_bytes_estimate = packed.size() * sizeof(packed[0]);
741 if (packed.empty()) {
774 packed.insert(packed.end(), padding.begin(), padding.end());
776 const void* packed_data = &packed[0];
780 packer.UnpackRelocations(packed, &unpacked);
786 // Rewrite the current dynamic relocations section with packed one then shrink it to size.
787 const size_t bytes = packed.size() * sizeof(packed[0]);
794 // Rewrite .dynamic and rename relocation tags describing the packed android
823 // Find packed relative relocations in the packed android relocations
835 // Retrieve the current packed android relocations section data.
840 std::vector<uint8_t> packed(
842 packed_base + data->d_size / sizeof(packed[0]));
845 packed.size() > 3 &&
846 packed[0] == 'A' &&
847 packed[1] == 'P' &&
848 packed[2] == 'S' &&
849 packed[3] == '2') {
852 LOG(ERROR) << "Packed relocations not found (not packed?)";
856 return UnpackTypedRelocations(packed);
861 bool ElfFile<ELF>::UnpackTypedRelocations(const std::vector<uint8_t>& packed) {
863 const size_t packed_bytes = packed.size() * sizeof(packed[0]);
867 packer.UnpackRelocations(packed, &unpacked_relocations);
910 // Rewrite .dynamic to remove two tags describing packed android relocations.