Home
last modified time | relevance | path

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

12345678910>>...23

/external/llvm-project/lld/unittests/MachOTests/
DMachONormalizedFileBinaryWriterTests.cpp136 text.relocations.push_back(makeReloc(0x01, false, true, X86_64_RELOC_BRANCH, 1)); in TEST()
137 text.relocations.push_back(makeReloc(0x08, false, true, X86_64_RELOC_GOT_LOAD, 1)); in TEST()
138 text.relocations.push_back(makeReloc(0x0E, false, true, X86_64_RELOC_GOT, 1)); in TEST()
139 text.relocations.push_back(makeReloc(0x14, false, true, X86_64_RELOC_SIGNED, 1)); in TEST()
140 text.relocations.push_back(makeReloc(0x1A, false, true, X86_64_RELOC_SIGNED_1, 1)); in TEST()
141 text.relocations.push_back(makeReloc(0x21, false, true, X86_64_RELOC_SIGNED_4, 1)); in TEST()
142 text.relocations.push_back(makeReloc(0x2C, false, true, X86_64_RELOC_TLV, 2)); in TEST()
184 const Relocation& call = text.relocations[0]; in TEST()
190 const Relocation& gotLoad = text.relocations[1]; in TEST()
196 const Relocation& gotUse = text.relocations[2]; in TEST()
[all …]
DMachONormalizedFileBinaryReaderTests.cpp285 EXPECT_EQ(text.relocations.size(), 2UL); in TEST()
286 const Relocation& call = text.relocations[0]; in TEST()
292 const Relocation& str = text.relocations[1]; in TEST()
311 EXPECT_TRUE(cstring.relocations.empty()); in TEST()
410 EXPECT_EQ(text.relocations.size(), 3UL); in TEST()
411 const Relocation& call = text.relocations[0]; in TEST()
419 const Relocation& sectDiff = text.relocations[1]; in TEST()
426 const Relocation& pair = text.relocations[2]; in TEST()
446 EXPECT_TRUE(cstring.relocations.empty()); in TEST()
542 EXPECT_EQ(text.relocations.size(), 5UL); in TEST()
[all …]
DMachONormalizedFileYAMLTests.cpp293 EXPECT_EQ(sect1.relocations.size(), 2UL); in TEST()
294 const Relocation& reloc1 = sect1.relocations[0]; in TEST()
303 const Relocation& reloc2 = sect1.relocations[1]; in TEST()
423 EXPECT_EQ(sect1.relocations.size(), 3UL); in TEST()
424 const Relocation& reloc1 = sect1.relocations[0]; in TEST()
433 const Relocation& reloc2 = sect1.relocations[1]; in TEST()
441 const Relocation& reloc3 = sect1.relocations[2]; in TEST()
551 EXPECT_EQ(sect1.relocations.size(), 3UL); in TEST()
552 const Relocation& reloc1 = sect1.relocations[0]; in TEST()
560 const Relocation& reloc2 = sect1.relocations[1]; in TEST()
[all …]
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Drelr-relocs.test4 # RUN: llvm-readobj --relocations --raw-relr %t1 \
14 # RUN: llvm-readobj --relocations %t1 | FileCheck --check-prefix=LLVM1 %s
39 # RUN: llvm-readelf --relocations --raw-relr %t1 \
48 # RUN: llvm-readelf --relocations %t1 | FileCheck --check-prefix=GNU1 %s
86 # RUN: llvm-readobj --relocations --raw-relr %t2 | \
96 # RUN: llvm-readobj --relocations %t2 | FileCheck --check-prefix=LLVM2 %s
114 # RUN: llvm-readelf --relocations --raw-relr %t2 | \
123 # RUN: llvm-readelf --relocations %t2 | FileCheck --check-prefix=GNU2 %s
156 ## Check we report a warning when we are unable to dump relocations
159 ## Case A: check the case when relocations can't be read from an SHT_RELR section.
[all …]
Ddemangle.test2 ## (including dynamic symbols), relocations (including dynamic relocations), and groups.
7 # RUN: llvm-readobj --symbols --relocations --dyn-symbols --dyn-relocations \
10 # RUN: llvm-readobj --symbols --relocations --dyn-symbols --dyn-relocations \
17 # RUN: llvm-readobj --symbols --relocations --dyn-symbols --dyn-relocations \
20 # RUN: llvm-readobj --symbols --relocations --dyn-symbols --dyn-relocations \
70 # RUN: llvm-readelf --symbols --relocations --dyn-symbols --dyn-relocations \
72 # RUN: llvm-readelf --symbols --relocations --dyn-symbols --dyn-relocations \
78 # RUN: llvm-readelf --symbols --relocations --dyn-symbols --dyn-relocations \
80 # RUN: llvm-readelf --symbols --relocations --dyn-symbols --dyn-relocations \
Dpacked-relocs.test5 # RUN: llvm-readobj --relocations %t1 | FileCheck --check-prefix=LLVM1 %s
17 # RUN: llvm-readelf --relocations %t1 | FileCheck --check-prefix=GNU1 %s
48 ## Check we report a warning when we are unable to dump relocations for a SHT_ANDROID_RELA section.
51 # RUN: llvm-readobj --relocations %t1.broken 2>&1 | FileCheck -DFILE=%t1.broken --check-prefix=BROK…
52 # RUN: llvm-readelf --relocations %t1.broken 2>&1 | FileCheck -DFILE=%t1.broken --check-prefix=BROK…
56 # BROKEN-RELA-LLVM-NEXT: warning: '[[FILE]]': unable to read relocations from SHT_ANDROID_RELA sect…
60 # BROKEN-RELA-GNU: warning: '[[FILE]]': unable to get the number of relocations in SHT_ANDROID…
63 # BROKEN-RELA-GNU-NEXT: warning: '[[FILE]]': unable to read relocations from SHT_ANDROID_RELA secti…
68 # RUN: llvm-readobj --relocations %t1.broken.link 2>&1 | \
70 # RUN: llvm-readelf --relocations %t1.broken.link 2>&1 | \
[all …]
Dno-relocs.test1 # Show that llvm-readobj can handle no relocations when --relocations is
6 # RUN: llvm-readobj %t.no_relocs --relocations | FileCheck %s --check-prefix NO-RELOCS-LLVM
7 # RUN: llvm-readelf %t.no_relocs --relocations | FileCheck %s --check-prefix NO-RELOCS-GNU
10 # RUN: llvm-readobj %t.no_sec --relocations | FileCheck %s --check-prefix NO-SEC-LLVM
11 # RUN: llvm-readelf %t.no_sec --relocations | FileCheck %s --check-prefix NO-SEC-GNU
30 # NO-SEC-GNU: There are no relocations in this file.
Dbroken-dynamic-reloc.test1 ## Test how we handle cases when dynamic relocations or corresponding dynamic tags are broken.
3 ## Check that llvm-readobj/llvm-readelf reports an error when dumping relocations if a dynamic
7 # RUN: llvm-readobj --dyn-relocations %t1 2>&1 | FileCheck %s -DFILE=%t1 --check-prefix=LLVM
8 # RUN: llvm-readelf --dyn-relocations %t1 2>&1 | FileCheck %s -DFILE=%t1 --check-prefix=GNU
56 # RUN: llvm-readobj --dyn-relocations %t2a 2>&1 | \
58 # RUN: llvm-readelf --dyn-relocations %t2a 2>&1 | \
91 # RUN: llvm-readobj --dyn-relocations %t2b 2>&1 | \
93 # RUN: llvm-readelf --dyn-relocations %t2b 2>&1 | \
100 # RUN: llvm-readobj --dyn-relocations %t3 2>&1 | \
102 # RUN: llvm-readelf --dyn-relocations %t3 2>&1 | \
[all …]
Ddynamic-reloc.test1 ## Test that we are able to print dynamic relocations with --dyn-relocations.
3 ## Check what we print when there are no dynamic relocations in an object.
5 # RUN: llvm-readobj --dyn-relocations %t1 2>&1 | FileCheck %s --check-prefix=LLVM-NONE
6 # RUN: llvm-readelf --dyn-relocations %t1 2>&1 | FileCheck %s --implicit-check-not={{.}} --allow-em…
20 # RUN: llvm-readobj --dyn-relocations %t2.1 2>&1 | \
22 # RUN: llvm-readelf --dyn-relocations %t2.1 2>&1 | \
28 # RUN: llvm-readobj --dyn-relocations %t2.2 2>&1 | \
30 # RUN: llvm-readelf --dyn-relocations %t2.2 2>&1 | \
136 # RUN: llvm-readobj --dyn-relocations %t3 2>&1 | \
138 # RUN: llvm-readelf --dyn-relocations %t3 2>&1 | \
Ddynamic-reloc-no-section-headers.test1 ## Test that we are able to print dynamic relocations with --dyn-relocations
5 # RUN: llvm-readobj --dyn-relocations %t 2>&1 \
7 # RUN: llvm-readelf --dyn-relocations %t 2>&1 \
/external/llvm/test/ExecutionEngine/RuntimeDyld/ARM/
DCOFF_Thumb.s93 .global relocations symbol
94 relocations: label
97 # rtdyld-check: *{4}relocations = function - section_addr(COFF_Thumb.s.tmp.obj, .text)
102 .long relocations(secrel32) @ IMAGE_REL_ARM_SECREL
103 # rtdyld-check: *{4}rel10 = relocations - section_addr(COFF_Thumb.s.tmp.obj, .data)
105 .secrel32 relocations @ IMAGE_REL_ARM_SECREL
106 # rtdyld-check: *{4}rel11 = relocations - section_addr(COFF_Thumb.s.tmp.obj, .data)
/external/llvm-project/llvm/test/ExecutionEngine/RuntimeDyld/ARM/
DCOFF_Thumb.s87 .global relocations symbol
88 relocations: label
91 # rtdyld-check: *{4}relocations = function - section_addr(COFF_Thumb.o, .text)
96 .long relocations(secrel32) @ IMAGE_REL_ARM_SECREL
97 # rtdyld-check: *{4}rel10 = relocations - section_addr(COFF_Thumb.o, .data)
99 .secrel32 relocations @ IMAGE_REL_ARM_SECREL
100 # rtdyld-check: *{4}rel11 = relocations - section_addr(COFF_Thumb.o, .data)
/external/llvm-project/lld/test/ELF/
Dgnu-ifunc-dso.s3 ## Produce dynamic relocations (symbolic or GOT) for relocations to ifunc
10 # RUN: llvm-readobj --dyn-relocations %t | FileCheck %s
12 # RUN: llvm-readobj --dyn-relocations %t.so | FileCheck %s
Driscv-undefined-weak.s16 ## Absolute relocations are resolved to 0.
27 ## Currently, PC-relative relocations are resolved to 0.
46 ## Branch relocations
48 ## Treat them as PC relative relocations.
67 ## Absolute relocations are resolved to 0.
/external/llvm-project/lld/wasm/
DInputChunks.cpp60 for (const WasmRelocation &rel : relocations) { in verifyRelocTargets()
127 if (relocations.empty()) in writeTo()
135 << " count=" << relocations.size() << "\n"); in writeTo()
139 for (const WasmRelocation &rel : relocations) { in writeTo()
194 if (relocations.empty()) in writeRelocations()
201 for (const WasmRelocation &rel : relocations) { in writeRelocations()
298 for (const WasmRelocation &rel : relocations) { in calculateSize()
337 for (const WasmRelocation &rel : relocations) { in writeTo()
357 << " count=" << relocations.size() << "\n"); in generateRelocationCode()
370 for (const WasmRelocation &rel : relocations) { in generateRelocationCode()
/external/llvm/test/ExecutionEngine/RuntimeDyld/X86/
DCOFF_i386.s57 .global relocations symbol
58 relocations: label
66 # rtdyld-check: *{4}rel7 = relocations - section_addr(COFF_i386.s.tmp.obj, .data)
67 .secrel32 relocations // IMAGE_REL_I386_SECREL
/external/llvm-project/llvm/test/MC/Mips/
Dunsupported-relocation.s4 # Check that we emit an error for unsupported relocations instead of crashing.
11 # CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
13 # CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
Doddspreg.s5 # RUN: llvm-readobj --sections --section-data --section-relocations - | \
12 # RUN: llvm-readobj --sections --section-data --section-relocations - | \
21 # RUN: llvm-readobj --sections --section-data --section-relocations - | \
25 # RUN: llvm-readobj --sections --section-data --section-relocations - | \
29 # RUN: llvm-readobj --sections --section-data --section-relocations - | \
33 # RUN: llvm-readobj --sections --section-data --section-relocations - | \
/external/llvm/test/MC/Mips/
Doddspreg.s5 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
12 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
21 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
25 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
29 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
33 # RUN: llvm-readobj -sections -section-data -section-relocations - | \
/external/llvm/docs/CommandGuide/
Dllvm-readobj.rst42 .. 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/Object/
Ddyn-rel-relocation.test1 // Check that 'llvm-readobj -dyn-relocations' shows dynamic relocations
26 RUN: llvm-readobj -relocations -dyn-relocations -expand-relocs \
/external/llvm-project/llvm/test/MC/COFF/
Dsecrel32-undef.s4 # Previously .secrel32 and .secidx relocations against undefined symbols
6 # resolving these relocations against symbols in other object files. Such
7 # relocations can be found in the MSVCRT debug info describing linker-provided
/external/llvm-project/llvm/docs/
DMCJITDesignAndImplementation.rst73 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/llvm/docs/
DMCJITDesignAndImplementation.rst73 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/llvm-project/llvm/test/DebugInfo/PDB/
Dsection-headers.test13 CHECK-NEXT: 0 number of relocations
28 CHECK-NEXT: 0 number of relocations
42 CHECK-NEXT: 0 number of relocations
57 CHECK-NEXT: 0 number of relocations

12345678910>>...23