| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | relr-relocs.test | 4 # RUN: llvm-readobj --relocations --raw-relr %t1 \ 14 # RUN: llvm-readobj --relocations %t1 | \ 41 # RUN: llvm-readelf --relocations --raw-relr %t1 \ 88 # RUN: llvm-readobj --relocations --raw-relr %t2 | \ 98 # RUN: llvm-readobj --relocations %t2 | \ 118 # RUN: llvm-readelf --relocations --raw-relr %t2 | \ 165 # RUN: llvm-readobj --relocations %t2.broken 2>&1 | \ 167 # RUN: llvm-readelf --relocations %t2.broken 2>&1 | \ 195 ## and the --relocations option is requested. 197 # RUN: llvm-readobj --relocations %t2.has.link 2>&1 | \ [all …]
|
| H A D | demangle.test | 2 ## (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 \
|
| H A D | no-relocs.test | 1 # 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.
|
| H A D | packed-relocs.test | 5 # 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. 68 # RUN: llvm-readobj --relocations %t1.broken.link 2>&1 | \ 70 # RUN: llvm-readelf --relocations %t1.broken.link 2>&1 | \ 84 # RUN: llvm-readobj --relocations %t2 | FileCheck --check-prefix=LLVM2 %s 98 # RUN: llvm-readelf --relocations %t2 | FileCheck --check-prefix=GNU2 %s 131 ## Check we report a warning when we are unable to dump relocations for a SHT_ANDROID_REL section. 151 # RUN: llvm-readobj --relocations %t2.broken.link 2>&1 | \ 153 # RUN: llvm-readelf --relocations %t2.broken.link 2>&1 | \ [all …]
|
| H A D | broken-dynamic-reloc.test | 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 | \ 161 # RUN: llvm-readobj --dyn-relocations %t10a 2>&1 | \ 263 # RUN: llvm-readobj --dyn-relocations %t12 2>&1 | \ 265 # RUN: llvm-readelf --dyn-relocations %t12 2>&1 | \ 375 # RUN: llvm-readobj --dyn-relocations %t7 2>&1 | \ [all …]
|
| H A D | dynamic-reloc.test | 1 ## 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 | \
|
| H A D | dynamic-reloc-no-section-headers.test | 1 ## 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 \
|
| /llvm-project-15.0.7/llvm/test/ExecutionEngine/RuntimeDyld/ARM/ |
| H A D | COFF_Thumb.s | 87 .global relocations 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)
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | gnu-ifunc-dso.s | 3 ## 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
|
| H A D | riscv-undefined-weak.s | 16 ## 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. 75 ## Absolute relocations are resolved to 0.
|
| H A D | relocation-undefined-weak.s | 3 ## On some targets (e.g. ARM, AArch64, and PPC), PC relative relocations to 5 ## the target symbols as treated as VA 0. Absolute relocations are always 20 # NORELCS: no relocations
|
| /llvm-project-15.0.7/bolt/test/AArch64/ |
| H A D | runtime-relocs.test | 1 // This test checks dynamic relocations support for aarch64. 8 // Check relocations in library: 16 // Check relocations in executable: 24 // Check traditional TLS relocations R_AARCH64_TLS_DTPMOD64 and 26 // relocations are obsolete and clang and lld does not support them,
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | arm64-relocs.s | 15 ## BRANCH26 relocations are 4-byte aligned, so 123 is truncated to 120 17 ## PAGE21 relocations are aligned to 4096 bytes 60 ## These generate ARM64_RELOC_UNSIGNED symbol relocations. llvm-mc seems to 61 ## generate UNSIGNED section relocations only for compact unwind sections, so 62 ## those relocations are being tested in compact-unwind.s.
|
| /llvm-project-15.0.7/llvm/test/MC/Mips/ |
| H A D | unsupported-relocation.s | 4 # 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
|
| H A D | oddspreg.s | 5 # 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 - | \
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | relocation-type.yaml | 3 ## Show that yaml2obj is able to produce relocations for an unknown e_machine kind properly. 5 # RUN: llvm-readelf %t1 --relocations | FileCheck %s -DFIRST=Unknown -DSECOND=Unknown 14 ## Show that yaml2obj is able to produce relocations for an arbitrary known e_machine kind properly. 16 # RUN: llvm-readelf %t2 --relocations | FileCheck %s -DFIRST=R_X86_64_NONE -DSECOND=R_X86_64_64
|
| /llvm-project-15.0.7/llvm/test/MC/COFF/ |
| H A D | secrel32-undef.s | 4 # 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
|
| /llvm-project-15.0.7/lld/wasm/ |
| H A D | InputChunks.cpp | 104 if (relocations.empty()) in relocate() 108 << " count=" << relocations.size() << "\n"); in relocate() 112 for (const WasmRelocation &rel : relocations) { in relocate() 173 if (relocations.empty()) in writeRelocations() 180 for (const WasmRelocation &rel : relocations) { in writeRelocations() 287 for (const WasmRelocation &rel : relocations) { in calculateSize() 324 for (const WasmRelocation &rel : relocations) { in writeCompressed() 365 << " count=" << relocations.size() << "\n"); in generateRelocationCode() 376 for (const WasmRelocation &rel : relocations) { in generateRelocationCode()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/ELF/ |
| H A D | relocations-in-nonreloc.test | 1 ## Check that llvm-objdump -r prints non-SHF_ALLOC relocations. 3 ## Non-SHF_ALLOC relocations may be due to ld --emit-relocs. 8 ## Non-SHF_ALLOC relocations are usually generated by compilers.
|
| /llvm-project-15.0.7/bolt/test/X86/ |
| H A D | double-rel.s | 1 ## Check that BOLT can correctly use relocations to symbolize instruction 2 ## operands when an instruction can have up to two relocations associated 25 ## VAR value is 0x80000. Using relocations, llvm-bolt should correctly
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A 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 …]
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PDB/ |
| H A D | section-headers.test | 13 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
|
| /llvm-project-15.0.7/lld/test/wasm/ |
| H A D | compress-relocs.ll | 7 ; RUN: not wasm-ld --compress-relocations -o %t-compressed.wasm %t2.o %t.o 2>&1 | FileCheck %s -che… 8 ; RUN: wasm-ld --export-dynamic --strip-debug --compress-relocations -o %t-compressed.wasm %t2.o %t… 23 ; ERROR: wasm-ld: error: --compress-relocations is incompatible with output debug information. Plea…
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | Relocations.cpp | 1222 c.relocations.push_back( in handleTlsRelocation() 1262 c.relocations.push_back( in handleTlsRelocation() 1266 c.relocations.push_back( in handleTlsRelocation() 1278 c.relocations.push_back( in handleTlsRelocation() 1486 sec.relocations.reserve(rels.size()); in scan() 1506 llvm::stable_sort(sec.relocations, in scan() 1651 in.got->relocations.push_back( in postScanRelocations() 1664 in.got->relocations.push_back( in postScanRelocations() 1674 in.got->relocations.push_back( in postScanRelocations() 1688 in.got->relocations.push_back( in postScanRelocations() [all …]
|
| /llvm-project-15.0.7/llvm/test/ExecutionEngine/RuntimeDyld/X86/ |
| H A D | COFF_i386.s | 39 .global relocations 40 relocations: label 66 # (absolute and as an offset from .data), so that relocations involving
|