/external/chromium_org/third_party/android_crazy_linker/src/src/ |
H A D | crazy_linker_elf_relro.cpp | 118 ElfRelocations relocations; local 119 if (!relocations.Init(view, error)) 131 relocations.CopyAndRelocate(relro_start,
|
H A D | crazy_linker_shared_library.cpp | 65 // Extension dynamic tags for packed relocations. 184 // Read an .android.rel.dyn packed relocations section. 366 // If packed relocations are present in the target library, read the 369 LOG("%s: Packed relocations found at offset %d, %d bytes\n", 382 LOG("%s: Packed relocations stored at %p\n", 395 // Apply relocations. 396 LOG("%s: Applying relocations to %s\n", __FUNCTION__, base_name_); 398 ElfRelocations relocations; local 400 if (!relocations.Init(&view_, error)) 404 relocations [all...] |
/external/chromium_org/tools/relocation_packer/src/ |
H A D | delta_encoder.cc | 14 // Encode relative relocations with addends into a delta encoded (packed) 17 void RelocationDeltaCodec::Encode(const std::vector<ELF::Rela>& relocations, argument 20 if (relocations.size() < 1) 24 packed->push_back(relocations.size()); 29 for (size_t i = 0; i < relocations.size(); ++i) { 30 const ELF::Rela* relocation = &relocations[i]; 40 // Decode relative relocations with addends from a delta encoded (packed) 43 std::vector<ELF::Rela>* relocations) { 68 relocations->push_back(relocation); 42 Decode(const std::vector<ELF::Sxword>& packed, std::vector<ELF::Rela>* relocations) argument
|
H A D | delta_encoder_unittest.cc | 16 std::vector<ELF::Rela>* relocations) { 21 relocations->push_back(relocation); 38 std::vector<ELF::Rela> relocations; local 44 codec.Encode(relocations, &packed); 49 AddRelocation(0xf00d0000, 10000, &relocations); 52 codec.Encode(relocations, &packed); 62 AddRelocation(0xf00d0004, 10012, &relocations); 65 codec.Encode(relocations, &packed); 78 AddRelocation(0xf00d0008, 10024, &relocations); 80 // Add three more relocations, 14 AddRelocation(ELF::Addr addr, ELF::Sxword addend, std::vector<ELF::Rela>* relocations) argument 110 std::vector<ELF::Rela> relocations; local [all...] |
H A D | packer.cc | 18 // Pack relative relocations into a run-length encoded packed 21 const std::vector<ELF::Rel>& relocations, 26 codec.Encode(relocations, &packed_words); 49 // Unpack relative relocations from a run-length encoded packed 53 std::vector<ELF::Rel>* relocations) { 65 codec.Decode(packed_words, relocations); 68 // Pack relative relocations with addends into a delta encoded packed 71 const std::vector<ELF::Rela>& relocations, 76 codec.Encode(relocations, &packed_words); 102 // Unpack relative relocations wit 20 PackRelativeRelocations( const std::vector<ELF::Rel>& relocations, std::vector<uint8_t>* packed) argument 51 UnpackRelativeRelocations( const std::vector<uint8_t>& packed, std::vector<ELF::Rel>* relocations) argument 70 PackRelativeRelocations( const std::vector<ELF::Rela>& relocations, std::vector<uint8_t>* packed) argument 104 UnpackRelativeRelocations( const std::vector<uint8_t>& packed, std::vector<ELF::Rela>* relocations) argument [all...] |
H A D | packer_unittest.cc | 14 void AddRelocation(ELF::Addr addr, std::vector<ELF::Rel>* relocations) { argument 18 relocations->push_back(relocation); 29 std::vector<ELF::Rela>* relocations) { 34 relocations->push_back(relocation); 51 std::vector<ELF::Rel> relocations; local 57 AddRelocation(0xd1ce0000, &relocations); 58 // Two more relocations, 4 byte deltas. 59 AddRelocation(0xd1ce0004, &relocations); 60 AddRelocation(0xd1ce0008, &relocations); 61 // Three more relocations, 27 AddRelocation(ELF::Addr addr, ELF::Sxword addend, std::vector<ELF::Rela>* relocations) argument 96 std::vector<ELF::Rel> relocations; local 139 std::vector<ELF::Rela> relocations; local 196 std::vector<ELF::Rela> relocations; local [all...] |
H A D | run_length_encoder.cc | 17 // relative relocations. 18 void GetDeltas(const std::vector<ELF::Rel>& relocations, argument 20 CHECK(relocations.size() >= 2); 22 for (size_t i = 0; i < relocations.size() - 1; ++i) { 23 const ELF::Rel* first = &relocations[i]; 26 const ELF::Rel* second = &relocations[i + 1]; 71 std::vector<ELF::Rel>* relocations) { 76 relocations->push_back(initial); 85 // Generate relocations for this count and delta pair. 91 relocations 67 Uncondense(ELF::Addr addr, const std::vector<ELF::Xword>& packed, size_t start_index, size_t end_index, std::vector<ELF::Rel>* relocations) argument 101 Encode(const std::vector<ELF::Rel>& relocations, std::vector<ELF::Xword>* packed) argument 125 Decode(const std::vector<ELF::Xword>& packed, std::vector<ELF::Rel>* relocations) argument [all...] |
H A D | run_length_encoder_unittest.cc | 14 void AddRelocation(ELF::Addr addr, std::vector<ELF::Rel>* relocations) { argument 18 relocations->push_back(relocation); 32 std::vector<ELF::Rel> relocations; local 38 codec.Encode(relocations, &packed); 43 AddRelocation(0xf00d0000, &relocations); 46 codec.Encode(relocations, &packed); 51 AddRelocation(0xf00d0004, &relocations); 54 codec.Encode(relocations, &packed); 66 AddRelocation(0xf00d0008, &relocations); 68 // Add three more relocations, 91 std::vector<ELF::Rel> relocations; local [all...] |
/external/llvm/include/llvm/Object/ |
H A D | ObjectFile.h | 35 /// relocation in the list of relocations in the object file. 55 /// relocations, usually because it is the trailing part of a multipart 116 iterator_range<relocation_iterator> relocations() const { function in class:llvm::object::SectionRef
|
/external/llvm/lib/MC/ |
H A D | WinCOFFObjectWriter.cpp | 89 typedef std::vector<COFFRelocation> relocations; typedef in namespace:__anon25894 99 relocations Relocations; 220 // if it has relocations pointing at it, keep it 222 assert(Section->Number != -1 && "Sections with relocations must be real!"); 765 // Turn relocations for temporary symbols into section relocations. 807 // generate the relocations however the rest of the MSVC toolchain is 818 // offset by 4 on ARM, however, because there is no RELA relocations, all
|