/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
H A D | packed-relocs-errors.s | 9 # 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 …]
|
H A D | broken-dynamic-reloc.test | 1 ## 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 …]
|
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 \ 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 …]
|
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. 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 …]
|
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… 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 …]
|
H A D | relr-relocs.test | 4 # RUN: llvm-readobj --relocations %t1 | \ 31 # RUN: llvm-readelf --relocations %t1 | FileCheck --check-prefix=GNU1 --match-full-lines --strict-w… 59 # RUN: llvm-readelf --relocations %t1.stripped | FileCheck --check-prefix=GNU1S --match-full-lines … 91 # RUN: llvm-readobj --relocations %t2 | \ 111 # RUN: llvm-readelf --relocations %t2 | FileCheck --check-prefix=GNU2 --match-full-lines --strict-w… 151 ## Check we report a warning when we are unable to dump relocations 154 ## Case A: check the case when relocations can't be read from an SHT_RELR section. 156 # RUN: llvm-readobj --relocations %t2.broken 2>&1 | \ 158 # RUN: llvm-readelf --relocations %t2.broken 2>&1 | \ 161 # BROKEN-LLVM: Relocations [ [all …]
|
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 13 # NO-RELOCS-LLVM: Relocations [ 27 # NO-SEC-LLVM: Relocations [ 30 # NO-SEC-GNU: There are no relocations in this file.
|
H A D | sections-ext.test | 1 ## 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 …]
|
H A D | relocations.test | 1 ## 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 \ 56 # LLVM-EXPAND-64:Relocations [ 113 ## Show that JSON relocations are always expanded. 119 # JSON-EXPAND-64: "Relocations": [ 270 Relocations: 288 Relocations: 337 ## Check we report a warning when we are unable to dump relocations for a section. [all …]
|
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 \ 10 # LLVM-NO-SEC-TABLE: Dynamic Relocations { 27 Relocations:
|
/llvm-project/llvm/test/MC/ARM/ |
H A 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 72 @ CHECK-RELOCATIONS: 0x8 R_ARM_MOVT_ABS function 73 @ CHECK-RELOCATIONS: 0xC R_ARM_MOVW_ABS_NC function 74 @ CHECK-RELOCATIONS: 0x10 R_ARM_MOVT_ABS function 75 @ CHECK-RELOCATIONS: 0x34 R_ARM_MOVW_ABS_NC external 76 @ CHECK-RELOCATIONS: 0x38 R_ARM_MOVT_ABS external 77 @ CHECK-RELOCATIONS: 0x3C R_ARM_MOVW_ABS_NC external 78 @ CHECK-RELOCATIONS: 0x40 R_ARM_MOVT_ABS external [all …]
|
H A D | thumb-8-bit-relocs.s | 3 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s 6 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s 30 @ CHECK-RELOCATIONS: Relocations [ 31 @ CHECK-RELOCATIONS: 0x2 R_ARM_THM_ALU_ABS_G3 function 32 @ CHECK-RELOCATIONS-NEXT: 0x4 R_ARM_THM_ALU_ABS_G2_NC function 33 @ CHECK-RELOCATIONS-NEXT: 0x6 R_ARM_THM_ALU_ABS_G1_NC function 34 @ CHECK-RELOCATIONS-NEXT: 0x8 R_ARM_THM_ALU_ABS_G0_NC function 35 @ CHECK-RELOCATIONS: ]
|
H A D | thumb-movwt-reloc.s | 3 @ RUN: | FileCheck -check-prefix CHECK-RELOCATIONS %s 23 @ CHECK-RELOCATIONS: Relocations [ 24 @ CHECK-RELOCATIONS: 0x2 R_ARM_THM_MOVW_ABS_NC function 25 @ CHECK-RELOCATIONS: 0x6 R_ARM_THM_MOVT_ABS function 26 @ CHECK-RELOCATIONS: ]
|
/llvm-project/clang/test/Driver/ |
H A D | ps4-ps5-relax-relocations.c | 3 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \ 5 // RUN: %clang -### -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \ 9 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=yes %s -o - 2>&1 |… 11 // RUN: %clang -### -x assembler -target x86_64-scei-ps4 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \ 16 // RUN: %clang -### -target x86_64-sie-ps5 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \ 18 // RUN: %clang -### -target x86_64-sie-ps5 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \ 22 // RUN: %clang -### -x assembler -target x86_64-sie-ps5 -Wa,-mrelax-relocations=yes %s -o - 2>&1 | \ 24 // RUN: %clang -### -x assembler -target x86_64-sie-ps5 -Wa,-mrelax-relocations=no %s -o - 2>&1 | \ 27 // CHECK-NOT: "-mrelax-relocations 29 // UNSET: "-mrelax-relocations=no"
|
/llvm-project/llvm/test/MC/ARM/Windows/ |
H A 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: ]
|
/llvm-project/bolt/include/bolt/Core/ |
H A D | BinarySection.h | 11 // flags, contents, and relocations. 41 /// A class to manage binary sections that also manages related relocations. 60 // Relocations associated with this section. Relocation offsets are 63 RelocationSetType Relocations; variable 65 // Dynamic relocations associated with this section. Relocation offsets are 69 // Pending relocations for this section. 130 /// Get the set of relocations referring to data in this section that 153 Relocations(Section.Relocations), in BinarySection() 321 /// Iterate over all non-pending relocations fo function 326 iterator_range<RelocationSetType::const_iterator> relocations() const { relocations() function [all...] |
/llvm-project/llvm/test/tools/llvm-readobj/XCOFF/ |
H A D | loader-section-relocation.test | 1 ## Test the --loader-section-relocations option. 5 # RUN: llvm-readobj --loader-section-relocations --expand-relocs %t_xcoff32.o | FileCheck --check-p… 6 # RUN: llvm-readobj --loader-section-relocations --expand-relocs %t_xcoff64.o | FileCheck --check-p… 7 # RUN: llvm-readobj --loader-section-relocations %t_xcoff32.o | FileCheck --check-prefixes=COMMON,N… 8 # RUN: llvm-readobj --loader-section-relocations %t_xcoff64.o | FileCheck --check-prefixes=COMMON,N… 10 # RUN: llvm-readobj --loader-section-relocations --expand-relocs --no-demangle %t_xcoff32.o | FileC… 11 # RUN: llvm-readobj --loader-section-relocations --expand-relocs --no-demangle %t_xcoff64.o | FileC… 12 # RUN: llvm-readobj --loader-section-relocations --no-demangle %t_xcoff32.o | FileCheck --check-pre… 13 # RUN: llvm-readobj --loader-section-relocations --no-demangle %t_xcoff64.o | FileCheck --check-pre… 15 # RUN: llvm-readobj --loader-section-relocations --expand-relocs --demangle %t_xcoff32.o | FileChec… [all …]
|
/llvm-project/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/bolt/lib/Core/ |
H A D | BinarySection.cpp | 52 auto Begin = Relocations.lower_bound(Relocation{Offset, 0, 0, 0, 0}); in hash() 53 auto End = Relocations.upper_bound(Relocation{EndOffset, 0, 0, 0, 0}); in hash() 94 for (auto RI = Relocations.begin(), RE = Relocations.end(); RI != RE;) { in emitAsData() 104 // Get iterators to all relocations with the same offset. Usually, there in emitAsData() 106 // relocations. in emitAsData() 108 auto ROE = Relocations.upper_bound(RelocationOffset); in emitAsData() 161 // We apply relocations to original section contents. For allocatable sections in flushPendingRelocations() 168 dbgs() << "BOLT-DEBUG: flushing pending relocations for section " in flushPendingRelocations() 204 void BinarySection::clearRelocations() { clearList(Relocations); } in print() [all...] |
/llvm-project/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 7 # RUN: llvm-readelf %t1 --relocations | FileCheck %s -DFIRST=Unknown -DSECOND=Unknown 16 ## Show that yaml2obj is able to produce relocations for an arbitrary known e_machine kind properly. 18 # RUN: llvm-readelf %t2 --relocations | FileCheck %s -DFIRST=R_X86_64_NONE -DSECOND=R_X86_64_64 29 Relocations:
|
/llvm-project/llvm/test/tools/llvm-objcopy/ELF/ |
H A D | no-symbol-relocation.test | 3 # RUN: llvm-readobj --relocations %t2 | FileCheck %s 21 Relocations: 25 # CHECK: Relocations [ 36 # RUN: llvm-readobj --relocations --sections --symbols %t4 | FileCheck %s --check-prefix=STRIP 38 # STRIP: Relocations [ 67 Relocations:
|
H A D | basic-relocations.test | 3 # RUN: llvm-readobj --relocations %t2 | FileCheck %s 22 Relocations: 36 Relocations: 44 Relocations: 53 Relocations: 82 # CHECK: Relocations [
|
/llvm-project/lld/test/ELF/ |
H A D | gnu-ifunc-plt.s | 13 /// 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
|
/llvm-project/llvm/test/tools/llvm-dwarfdump/Inputs/ |
H A D | dump_dwo.o.yaml | 64 Relocations: 75 Relocations: 96 Relocations: 110 Relocations: 124 Relocations: 134 Relocations: 144 Relocations: 158 Relocations:
|
/llvm-project/llvm/test/ExecutionEngine/RuntimeDyld/ARM/ |
H A D | COFF_Thumb.s | 87 .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)
|