| /external/chromium_org/tools/relocation_packer/src/ |
| D | run_length_encoder_unittest.cc | 13 void AddRelocation(Elf32_Addr addr, std::vector<Elf32_Rel>* relocations) { in AddRelocation() argument 15 relocations->push_back(relocation); in AddRelocation() 27 std::vector<Elf32_Rel> relocations; in TEST() local 33 codec.Encode(relocations, &packed); in TEST() 38 AddRelocation(0xf00d0000, &relocations); in TEST() 41 codec.Encode(relocations, &packed); in TEST() 46 AddRelocation(0xf00d0004, &relocations); in TEST() 49 codec.Encode(relocations, &packed); in TEST() 61 AddRelocation(0xf00d0008, &relocations); in TEST() 63 // Add three more relocations, 8 byte deltas. in TEST() [all …]
|
| D | packer_unittest.cc | 13 void AddRelocation(Elf32_Addr addr, std::vector<Elf32_Rel>* relocations) { in AddRelocation() argument 15 relocations->push_back(relocation); in AddRelocation() 27 std::vector<Elf32_Rel> relocations; in TEST() local 33 AddRelocation(0xd1ce0000, &relocations); in TEST() 34 // Two more relocations, 4 byte deltas. in TEST() 35 AddRelocation(0xd1ce0004, &relocations); in TEST() 36 AddRelocation(0xd1ce0008, &relocations); in TEST() 37 // Three more relocations, 8 byte deltas. in TEST() 38 AddRelocation(0xd1ce0010, &relocations); in TEST() 39 AddRelocation(0xd1ce0018, &relocations); in TEST() [all …]
|
| D | run_length_encoder.h | 5 // Run-length encode and decode R_ARM_RELATIVE relocations. 7 // R_ARM_RELATIVE relocations are the bulk of dynamic relocations (the 31 // set of R_ARM_RELATIVE relocations in libchrome.<version>.so can be 38 // Decoding regenerates R_ARM_RELATIVE relocations beginning at address 43 // count pairs. A final run-length encoded R_ARM_RELATIVE relocations vector 62 // A RelocationRunLengthCodec packs vectors of R_ARM_RELATIVE relocations 66 // Encode R_ARM_RELATIVE relocations into a more compact form. 67 // |relocations| is a vector of R_ARM_RELATIVE relocation structs. 68 // |packed| is the vector of packed words into which relocations are packed. 69 static void Encode(const std::vector<Elf32_Rel>& relocations, [all …]
|
| D | packer.h | 5 // Pack R_ARM_RELATIVE relocations into a more compact form. 8 // turns a large set of R_ARM_RELATIVE relocations into a much smaller set 32 // A RelocationPacker packs vectors of R_ARM_RELATIVE relocations into more 36 // Pack R_ARM_RELATIVE relocations into a more compact form. 37 // |relocations| is a vector of R_ARM_RELATIVE relocation structs. 38 // |packed| is the vector of packed bytes into which relocations are packed. 39 static void PackRelativeRelocations(const std::vector<Elf32_Rel>& relocations, 42 // Unpack R_ARM_RELATIVE relocations from their more compact form. 43 // |packed| is the vector of packed relocations. 44 // |relocations| is a vector of unpacked R_ARM_RELATIVE relocation structs. [all …]
|
| D | run_length_encoder.cc | 20 // R_ARM_RELATIVE relocations. 21 void GetDeltas(const std::vector<Elf32_Rel>& relocations, in GetDeltas() argument 23 CHECK(relocations.size() >= 2); in GetDeltas() 25 for (size_t i = 0; i < relocations.size() - 1; ++i) { in GetDeltas() 26 const Elf32_Addr first = relocations[i].r_offset; in GetDeltas() 27 const Elf32_Addr second = relocations[i + 1].r_offset; in GetDeltas() 70 std::vector<Elf32_Rel>* relocations) { in Uncondense() argument 73 relocations->push_back(initial); in Uncondense() 82 // Generate relocations for this count and delta pair. in Uncondense() 86 relocations->push_back(relocation); in Uncondense() [all …]
|
| D | elf_file.cc | 346 // relocations in the shared object. in AdjustDynamicSectionForHole() 348 // DT_RELSZ is the overall size of relocations. Adjust by hole size. in AdjustDynamicSectionForHole() 357 // of R_ARM_RELATIVE relocations, and DT_RELCOUNT is the count of in AdjustDynamicSectionForHole() 358 // relative relocations. So closing a hole on packing reduces in AdjustDynamicSectionForHole() 631 // Apply R_ARM_RELATIVE relocations to the file data to which they refer. 637 const std::vector<Elf32_Rel>& relocations) { in AdjustRelocationTargets() argument 655 for (size_t i = 0; i < relocations.size(); ++i) { in AdjustRelocationTargets() 656 const Elf32_Rel* relocation = &relocations[i]; in AdjustRelocationTargets() 689 // Pad relocations with a given number of R_ARM_NONE relocations. 691 std::vector<Elf32_Rel>* relocations) { in PadRelocations() argument [all …]
|
| D | packer.cc | 19 // Pack R_ARM_RELATIVE relocations into a run-length encoded packed 22 const std::vector<Elf32_Rel>& relocations, in PackRelativeRelocations() argument 28 codec.Encode(relocations, &packed_words); in PackRelativeRelocations() 51 // Unpack R_ARM_RELATIVE relocations from a run-length encoded packed 55 std::vector<Elf32_Rel>* relocations) { in UnpackRelativeRelocations() argument 66 codec.Decode(packed_words, relocations); in UnpackRelativeRelocations()
|
| D | main.cc | 5 // Tool to pack and unpack R_ARM_RELATIVE relocations in a shared library. 7 // Packing removes R_ARM_RELATIVE relocations from .rel.dyn and writes them 11 // Invoke with -p to pad removed relocations with R_ARM_NONE. Suppresses 44 "Pack or unpack R_ARM_RELATIVE relocations in a shared library.\n\n" in PrintUsage() 45 " -u, --unpack unpack previously packed R_ARM_RELATIVE relocations\n" in PrintUsage() 48 "Extracts R_ARM_RELATIVE relocations from the .rel.dyn section, packs\n" in PrintUsage() 49 "them into a more compact format, and stores the packed relocations in\n" in PrintUsage()
|
| D | elf_file.h | 7 // Provides functions to remove R_ARM_RELATIVE relocations from the .rel.dyn 39 // A packed shared object file has all of its R_ARM_RELATIVE relocations 45 // relocations with the data already in .rel.dyn, and then writing back the 59 // An ElfFile reads shared objects, and shuttles R_ARM_RELATIVE relocations 72 // Transfer R_ARM_RELATIVE relocations from .rel.dyn to a packed 76 // Transfer R_ARM_RELATIVE relocations from a packed representation in
|
| /external/llvm/test/MC/ARM/ |
| D | target-expressions.s | 3 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s 70 @ CHECK-RELOCATIONS: Relocations [ 71 @ CHECK-RELOCATIONS: 0x4 R_ARM_MOVW_ABS_NC function 0x0 72 @ CHECK-RELOCATIONS: 0x8 R_ARM_MOVT_ABS function 0x0 73 @ CHECK-RELOCATIONS: 0xC R_ARM_MOVW_ABS_NC function 0x0 74 @ CHECK-RELOCATIONS: 0x10 R_ARM_MOVT_ABS function 0x0 75 @ CHECK-RELOCATIONS: 0x34 R_ARM_MOVW_ABS_NC external 0x0 76 @ CHECK-RELOCATIONS: 0x38 R_ARM_MOVT_ABS external 0x0 77 @ CHECK-RELOCATIONS: 0x3C R_ARM_MOVW_ABS_NC external 0x0 78 @ CHECK-RELOCATIONS: 0x40 R_ARM_MOVT_ABS external 0x0 [all …]
|
| D | eh-directive-personalityindex.s | 28 @ CHECK: Relocations [ 57 @ CHECK: Relocations [ 90 @ CHECK: Relocations [ 127 @ CHECK: Relocations [ 161 @ CHECK: Relocations [ 196 @ CHECK: Relocations [
|
| /external/llvm/test/MC/ARM/Windows/ |
| D | mov32t-range.s | 2 @ RUN: | llvm-readobj -r - | FileCheck -check-prefix CHECK-RELOCATIONS %s 28 @ CHECK-RELOCATIONS: Relocations [ 29 @ CHECK-RELOCATIONS: .text { 30 @ CHECK-RELOCATIONS: 0x0 IMAGE_REL_ARM_MOV32T .rdata 31 @ CHECK-RELOCATIONS-NOT: 0x4 IMAGE_REL_ARM_MOV32T .rdata 32 @ CHECK-RELOCATIONS: } 33 @ CHECK-RELOCATIONS: ]
|
| /external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests/nasm64/ |
| D | macho-reloc64-err.errwarn | 1 -:20: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym… 2 -:21: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym… 3 -:23: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym… 4 -:24: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym… 5 -:25: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym… 6 -:26: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym… 7 -:27: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_sym…
|
| /external/llvm/docs/ |
| D | MCJITDesignAndImplementation.rst | 73 image must be loaded into suitable memory, relocations must be applied and 102 object image and for each section iterates through the relocations for 113 relocations have not yet been applied and the generated code is still not 117 relocations when loadObject completes. However, this shouldn't be 120 relocations are applied. It is possible to apply relocations multiple 148 external symbols and then apply all relocations for the object. 154 iterate through the list of relocations it has stored which are associated 160 sections and for each section iterates through a list of relocations that 163 relocations for which the symbol associated with the relocation is located 168 .. image:: MCJIT-resolve-relocations.png [all …]
|
| /external/chromium_org/tools/relocation_packer/ |
| D | README.TXT | 4 R_ARM_RELATIVE relocations are the bulk of dynamic relocations (the .rel.dyn 9 relocations are placed in a new .android.rel.dyn section. Packing reduces 15 extended to understand packed relocations. Packed relocations are currently 66 To pack relocations, add an empty .android.rel.dyn and then run the tool:
|
| /external/chromium_org/tools/gyp/test/win/ |
| D | gyptest-link-fixed-base.py | 27 if 'Relocations stripped' not in GetHeaders('test_fixed_default_exe.exe'): 29 if 'Relocations stripped' in GetHeaders('test_fixed_default_dll.dll'): 33 if 'Relocations stripped' in GetHeaders('test_fixed_no.exe'): 37 if 'Relocations stripped' not in GetHeaders('test_fixed_yes.exe'):
|
| /external/llvm/test/MC/COFF/ |
| D | relocation-imgrel.s | 1 // COFF Image-relative relocations 3 // Test that we produce image-relative relocations (IMAGE_REL_I386_DIR32NB 17 // W32: Relocations [ 24 // W64: Relocations [
|
| /external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| D | RuntimeDyldImpl.h | 63 /// relocations (like ARM). 67 /// for calculating relocations in some object formats (like MachO). 77 /// RelocationEntry - used to represent relocations internally in the dynamic 198 // For each symbol, keep a list of relocations based on it. Anytime 200 // the relocations get re-resolved. 204 // Relocations to sections already loaded. Indexed by SectionID which is the 207 DenseMap<unsigned, RelocationList> Relocations; variable 209 // Relocations to external symbols that are not yet resolved. Symbols are 220 // sections containing relocations should be. Defaults to 'false'. 317 /// \brief Resolves relocations from Relocs list with address from Value. [all …]
|
| /external/llvm/test/MC/ELF/ |
| D | local-reloc.s | 3 // Test that relocations with local symbols are represented as relocations 9 // CHECK: Relocations [
|
| /external/llvm/lib/Target/AArch64/MCTargetDesc/ |
| D | AArch64MachObjectWriter.cpp | 95 "ADR/ADRP relocations must be GOT relative"); in getAArch64FixupKindMachOInfo() 136 // ADRP fixups use relocations for the whole symbol value and only in RecordRelocation() 142 // imm19 relocations are for conditional branches, which require in RecordRelocation() 154 // 14-bit branch relocations should only target internal labels, and so in RecordRelocation() 217 // We don't support PCrel relocations of differences. in RecordRelocation() 223 // AArch64 always uses external relocations. If there is no symbol to use as in RecordRelocation() 299 // Relocations inside debug sections always use local relocations when in RecordRelocation() 308 // AArch64 uses external relocations as much as possible. For debug in RecordRelocation() 309 // sections, and for pointer-sized relocations (.quad), we allow section in RecordRelocation() 310 // relocations. It's code sections that run into trouble. in RecordRelocation() [all …]
|
| /external/llvm/docs/CommandGuide/ |
| D | llvm-readobj.rst | 42 .. option:: -section-relocations, -sr 44 When used with ``-sections``, display relocations for each section shown. 50 .. option:: -relocations, -r 68 When used with ``-relocations``, display each relocation in an expanded
|
| /external/llvm/test/MC/Mips/ |
| D | higher-highest-addressing.s | 8 # Test that R_MIPS_HIGHER and R_MIPS_HIGHEST relocations are created. By using 10 # relocations. 18 # CHECK-REL: Relocations [ 32 # Check the case where relocations are not modified by adding +1. The constant
|
| /external/llvm/tools/llvm-readobj/ |
| D | llvm-readobj.cpp | 64 // -section-relocations, -sr 65 cl::opt<bool> SectionRelocations("section-relocations", 66 cl::desc("Display relocations for each section shown.")); 68 cl::desc("Alias for --section-relocations"), 85 // -relocations, -r 86 cl::opt<bool> Relocations("relocations", variable 89 cl::desc("Alias for --relocations"), 90 cl::aliasopt(Relocations)); 237 if (opts::Relocations) in dumpObject()
|
| /external/llvm/bindings/python/llvm/ |
| 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) 363 Relocations are created from objects derived from Section instances.
|
| /external/llvm/lib/MC/ |
| D | WinCOFFObjectWriter.cpp | 69 int Relocations; member in __anon79e664d50111::COFFSymbol 89 typedef std::vector<COFFRelocation> relocations; typedef 99 relocations Relocations; member in __anon79e664d50111::COFFSection 197 , Relocations(0) in COFFSymbol() 220 // if it has relocations pointing at it, keep it in should_keep() 221 if (Relocations > 0) { in should_keep() 222 assert(Section->Number != -1 && "Sections with relocations must be real!"); in should_keep() 765 // Turn relocations for temporary symbols into section relocations. in RecordRelocation() 773 ++Reloc.Symb->Relocations; in RecordRelocation() 807 // generate the relocations however the rest of the MSVC toolchain is in RecordRelocation() [all …]
|