Home
last modified time | relevance | path

Searched full:relocations (Results 1 – 25 of 2114) sorted by relevance

12345678910>>...85

/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 …]
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Dpacked-relocs-errors.s9 # RUN: llvm-readobj --relocations %t1.o 2>&1 | FileCheck %s -DFILE=%t1.o --check-prefix=ERR-HEADER
10 # RUN: llvm-readelf --relocations %t1.o 2>&1 | FileCheck %s -DFILE=%t1.o --check-prefix=ERR-HEADER
16 # ERR-HEADER: warning: '[[FILE]]': unable to read relocations from SHT_ANDROID_REL section with ind…
19 # RUN: llvm-readobj --relocations %t2.o 2>&1 | FileCheck %s -DFILE=%t2.o --check-prefix=ERR-PAST-END
20 # RUN: llvm-readelf --relocations %t2.o 2>&1 | FileCheck %s -DFILE=%t2.o --check-prefix=ERR-PAST-END
26 # ERR-PAST-END: warning: '[[FILE]]': unable to read relocations from SHT_ANDROID_REL section with i…
29 # RUN: llvm-readobj --relocations %t3.o 2>&1 | FileCheck %s -DFILE=%t3.o --check-prefix=ERR-PAST-END
30 # RUN: llvm-readelf --relocations %t3.o 2>&1 | FileCheck %s -DFILE=%t3.o --check-prefix=ERR-PAST-END
35 .sleb128 4 ## Number of relocations
39 # RUN: llvm-readobj --relocations %t4.o 2>&1 | FileCheck %s -DFILE=%t4.o --check-prefix=ERR-PAST-END
[all …]
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 …]
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
10 # LLVM: Dynamic Relocations {
30 Relocations:
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 | \
[all …]
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…
54 # BROKEN-RELA-LLVM: Relocations [
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 | \
[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 \
26 # LLVM-COMMON: Relocations [
33 # LLVM-COMMON: Dynamic 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 \
[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…
8 # LLVM-NONE: Dynamic Relocations {
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 | \
34 # LLVM-RELOCS: Dynamic Relocations {
[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
13 # NO-RELOCS-LLVM: Relocations [
27 # NO-SEC-LLVM: Relocations [
30 # NO-SEC-GNU: There are no relocations in this file.
Dsections-ext.test1 ## This is a test case for --section-symbols, --section-relocations and
12 ## Test --section-relocations (--sr) displays relocations for each section.
14 # RUN: llvm-readobj --sections --section-relocations %t > %t.readobj-sr-no-alias
25 # RUN: llvm-readobj --sections --section-symbols --section-relocations --section-data %t | \
42 # SR-NEXT: Relocations [
62 # SR-NEXT: Relocations [
91 # SR-NEXT: Relocations [
114 # SR-NEXT: Relocations [
132 # SR-NEXT: Relocations [
155 # SR-NEXT: Relocations [
[all …]
Drelocations.test1 ## Check llvm-readobj and llvm-readelf print relocations as expected.
9 # RUN: llvm-readobj --relocations %t64 \
12 # LLVM-64:Relocations [
32 # RUN: llvm-readelf --relocations %t64 \
57 # LLVM-EXPAND-64:Relocations [
134 Relocations:
152 Relocations:
201 ## Check we report a warning when we are unable to dump relocations for a section.
204 ## Case A: check the case when relocations can't be read from an SHT_REL section.
207 # RUN: llvm-readobj --relocations %t.broken.rel 2>&1 \
[all …]
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 \
10 # LLVM-NO-SEC-TABLE: Dynamic Relocations {
27 Relocations:
/external/llvm/test/MC/ARM/
Dtarget-expressions.s3 @ 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 …]
Dthumb-movwt-reloc.s3 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s
23 @ CHECK-RELOCATIONS: Relocations [
24 @ CHECK-RELOCATIONS: 0x2 R_ARM_THM_MOVW_ABS_NC function 0x0
25 @ CHECK-RELOCATIONS: 0x6 R_ARM_THM_MOVT_ABS function 0x0
26 @ CHECK-RELOCATIONS: ]
/external/llvm-project/llvm/test/MC/ARM/
Dtarget-expressions.s3 @ 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 …]
Dthumb-movwt-reloc.s3 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s
23 @ CHECK-RELOCATIONS: Relocations [
24 @ CHECK-RELOCATIONS: 0x2 R_ARM_THM_MOVW_ABS_NC function 0x0
25 @ CHECK-RELOCATIONS: 0x6 R_ARM_THM_MOVT_ABS function 0x0
26 @ CHECK-RELOCATIONS: ]
/external/llvm/test/MC/ARM/Windows/
Dmov32t-range.s2 @ 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/llvm-project/llvm/test/MC/ARM/Windows/
Dmov32t-range.s2 @ 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/llvm-project/lld/wasm/
DInputChunks.cpp60 for (const WasmRelocation &rel : relocations) { in verifyRelocTargets()
121 // Copy this input chunk to an mmap'ed output file and apply relocations.
126 // Apply relocations in writeTo()
127 if (relocations.empty()) in writeTo()
134 LLVM_DEBUG(dbgs() << "applying relocations: " << toString(this) in writeTo()
135 << " count=" << relocations.size() << "\n"); in writeTo()
139 for (const WasmRelocation &rel : relocations) { in writeTo()
192 // we consume relocations instead of copying them to an output file.
194 if (relocations.empty()) in writeRelocations()
201 for (const WasmRelocation &rel : relocations) { in writeRelocations()
[all …]
/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/clang/test/Driver/
Dps4-relax-relocations.c5 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \
7 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
11 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 |…
13 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \
16 // CHECK: "--mrelax-relocations"
18 // UNSET-NOT: "--mrelax-relocations"
/external/llvm-project/lld/ELF/
DRelocations.cpp1 //===- Relocations.cpp ----------------------------------------------------===//
9 // This file contains platform-independent functions to process relocations.
12 // Simple relocations are easy to handle for the linker. For example,
17 // But not all relocations are that easy to handle. For example, for
23 // ELF defines a large number of complex relocations.
25 // The functions in this file analyze relocations and do whatever needs
29 // - create new relocations in .dynsym to let the dynamic linker resolve
31 // relocations can be resolved at link-time)
36 // Note that the functions in this file don't actually apply relocations
38 // It instead stores Relocation objects to InputSection's Relocations
[all …]
/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/lld/test/ELF/
Dgnu-ifunc-plt.s13 /// Check that the PLTRELSZ tag does not include the IRELATIVE relocations
18 /// Check that the IRELATIVE relocations are placed to the .rela.dyn section after
19 /// other regular relocations (e.g. GLOB_DAT).
20 // CHECK: Relocations [
80 // Test that --shuffle-sections does not affect the order of relocations and that
81 // we still place IRELATIVE relocations last. Check both random seed (0) and an
82 // arbitrary seed that was known to break the order of relocations previously (3).
84 // RUN: llvm-readobj --relocations %tout2 | FileCheck %s --check-prefix=SHUFFLE
86 // RUN: llvm-readobj --relocations %tout3 | FileCheck %s --check-prefix=SHUFFLE
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
Dbasic-relocations.test3 # RUN: llvm-readobj --relocations %t2 | FileCheck %s
22 Relocations:
36 Relocations:
44 Relocations:
53 Relocations:
82 # CHECK: Relocations [

12345678910>>...85