/external/chromium_org/tools/relocation_packer/src/ |
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...] |
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 | 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.h | 5 // Pack relative relocations into a more compact form. 8 // For relative relocations without addends (32 bit platforms) 12 // turns a large set of relative relocations into a much smaller set 20 // A complete packed stream of relocations without addends might look 27 // For relative relocations with addends (64 bit platforms) 31 // turns a large set of relative relocations into a smaller set 55 // A RelocationPacker packs vectors of relative relocations into more 59 // Pack relative relocations into a more compact form. 60 // |relocations| is a vector of relative relocation structs. 61 // |packed| is the vector of packed bytes into which relocations ar [all...] |
H A D | delta_encoder.h | 5 // Delta encode and decode relative relocations with addends. 7 // Relative relocations are the bulk of dynamic relocations (the 10 // relocations without addends, .rela.dyn relocations with addends. 39 // three relocations above can be represented as: 60 // A RelocationDeltaCodec packs vectors of relative relocations with 65 // Encode relative relocations with addends into a more compact form. 66 // |relocations| is a vector of relative relocation with addend structs. 67 // |packed| is the vector of packed words into which relocations ar [all...] |
H A D | run_length_encoder.h | 5 // Run-length encode and decode relative relocations. 7 // Relative relocations are the bulk of dynamic relocations (the 10 // relocations without addends, .rela.dyn relocations with addends. 32 // set of relative relocations in libchrome.<version>.so can be 39 // Decoding regenerates relative relocations beginning at address 44 // count pairs. A final run-length encoded relative relocations vector 62 // A RelocationRunLengthCodec packs vectors of relative relocations 66 // Encode relative relocations int [all...] |
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 | 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 | 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 | elf_file.h | 7 // Provides functions to remove relative relocations from the .rel.dyn 45 // A packed shared object file has all of its relative relocations 52 // combining the relative relocations with the data already in .rel.dyn 67 // An ElfFile reads shared objects, and shuttles relative relocations 84 // Transfer relative relocations from .rel.dyn or .rela.dyn to a packed 89 // Transfer relative relocations from a packed representation in 103 bool PackTypedRelocations(const std::vector<Rel>& relocations,
|
H A D | elf_file.cc | 49 // android packed relocations section. 200 // Notes of the dynamic relocations, packed relocations, and .dynamic 265 // Loading failed if we could not identify the relocations type. 267 LOG(ERROR) << "No relocations sections found"; 271 LOG(ERROR) << "Multiple relocations sections with different types found, " 770 // DT_RELSZ or DT_RELASZ indicate the overall size of relocations. 778 // DT_RELCOUNT or DT_RELACOUNT hold the count of relative relocations. 812 // Note if we are resizing the real dyn relocations. 850 // If resizing the dynamic relocations, rewrit [all...] |
/external/llvm/test/MC/Mips/ |
H A D | micromips-jump26.s | 8 # for relocations. 16 # Check that the appropriate relocations were created.
|
H A D | micromips-tailr.s | 8 # for relocations. 18 # Check that the appropriate relocations were created.
|
H A D | higher-highest-addressing.s | 8 # Test that R_MIPS_HIGHER and R_MIPS_HIGHEST relocations are created. By using 10 # relocations. 32 # Check the case where relocations are not modified by adding +1. The constant
|
H A D | oddspreg.s | 5 # RUN: llvm-readobj -sections -section-data -section-relocations - | \ 12 # RUN: llvm-readobj -sections -section-data -section-relocations - | \ 19 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
|
H A D | elf_reginfo.s | 12 # Check that the appropriate relocations were created.
|
H A D | mips-data-directives.s | 5 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
|
/external/llvm/test/MC/PowerPC/ |
H A D | ppc64-relocs-01.s | 24 # The relocations in .rela.text are the 'number64' load using a 32 # The .opd entry for the 'access_int64' function creates 2 relocations:
|
/external/llvm/test/MC/MachO/ARM/ |
H A D | no-subsections-reloc.s | 6 @ in the same section can be resolved at assembly time w/o relocations.
|
/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,
|
/external/llvm/test/MC/ARM/ |
H A D | macho-relocs-with-addend.s | 4 @ MachO relocations that end up expressed as internal
|
/external/llvm/bindings/python/llvm/ |
H A D | object.py | 18 symbols, and relocations. These are represented by the classes ObjectFile, 30 relocations, call get_relocations() on a Section instance. 35 The LLVM bindings expose iteration over sections, symbols, and relocations in a 241 """Obtain the relocations in this Section. 251 relocations = lib.LLVMGetRelocations(self) 254 if lib.LLVMIsRelocationIteratorAtEnd(self, relocations): 257 last = Relocation(relocations) 263 lib.LLVMMoveToNextRelocation(relocations) 269 lib.LLVMDisposeRelocationIterator(relocations)
|
/external/llvm/test/MC/Mips/mips32/ |
H A D | abiflags.s | 5 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
|
/external/llvm/test/MC/Mips/mips32r2/ |
H A D | abiflags.s | 5 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
|
/external/llvm/test/MC/Mips/mips64/ |
H A D | abiflags.s | 5 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
|