[UpdateTestChecks] Allow Lbegin_func without a leading period
[llvm-complete.git] / test / Object / objdump-relocations.test
blob73e9a4866c6f0e606b7fa5d30bb80526d91ad0af
1 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-i386 \
2 RUN:              | FileCheck %s -check-prefix COFF-i386
3 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \
4 RUN:              | FileCheck %s -check-prefix COFF-x86-64
5 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \
6 RUN:              | FileCheck %s -check-prefix ELF-i386
7 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \
8 RUN:              | FileCheck %s -check-prefix ELF-x86-64
9 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \
10 RUN:              | FileCheck %s -check-prefix ELF-hexagon
11 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \
12 RUN:              | FileCheck %s -check-prefix ELF-MIPS64EL
13 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \
14 RUN:              | FileCheck %s -check-prefix ELF-MIPSEL
15 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.wasm \
16 RUN:              | FileCheck %s -check-prefix WASM
18 RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \
19 RUN:              | FileCheck %s -check-prefix ELF-complex-x86-64
21 COFF-i386: .text
22 COFF-i386: IMAGE_REL_I386_DIR32 L_.str
23 COFF-i386: IMAGE_REL_I386_REL32 _puts
24 COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction
26 COFF-x86-64: .text
27 COFF-x86-64: IMAGE_REL_AMD64_REL32 L.str
28 COFF-x86-64: IMAGE_REL_AMD64_REL32 puts
29 COFF-x86-64: IMAGE_REL_AMD64_REL32 SomeOtherFunction
31 ELF-i386: .text
32 ELF-i386: R_386_32 .rodata.str1.1
33 ELF-i386: R_386_PC32 puts
34 ELF-i386: R_386_PC32 SomeOtherFunction
36 ELF-x86-64: .text
37 ELF-x86-64: R_X86_64_32S .rodata.str1.1
38 ELF-x86-64: R_X86_64_PC32 puts
39 ELF-x86-64: R_X86_64_PC32 SomeOtherFunction
41 ELF-hexagon: .text
42 ELF-hexagon: R_HEX_GOTREL_HI16 .main
43 ELF-hexagon: R_HEX_GOTREL_LO16 .main
44 ELF-hexagon: R_HEX_HI16 puts
45 ELF-hexagon: R_HEX_LO16 puts
46 ELF-hexagon: R_HEX_B15_PCREL testf
47 ELF-hexagon: R_HEX_B22_PCREL puts
49 // Note: this file was produced with gas to make sure we don't end up in a
50 // situation where LLVM produces and accepts a broken file.
51 ELF-MIPS64EL: .data
52 ELF-MIPS64EL: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE zed
54 ELF-MIPSEL: .rel.text
55 ELF-MIPSEL: R_MIPS_HI16 _gp_disp
56 ELF-MIPSEL: R_MIPS_LO16 _gp_disp
57 ELF-MIPSEL: R_MIPS_GOT16 $.str
58 ELF-MIPSEL: R_MIPS_LO16 $.str
59 ELF-MIPSEL: R_MIPS_CALL16 puts
60 ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
62 WASM:      CODE
63 WASM-NEXT: R_WASM_MEMORY_ADDR_SLEB .L.str
64 WASM-NEXT: R_WASM_FUNCTION_INDEX_LEB puts
65 WASM-NEXT: R_WASM_FUNCTION_INDEX_LEB .LSomeOtherFunction_bitcast
66 WASM-NEXT: R_WASM_FUNCTION_INDEX_LEB SomeOtherFunction
68 ELF-complex-x86-64: .text
69 ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4
70 ELF-complex-x86-64-NEXT: R_X86_64_16 .data-4
71 ELF-complex-x86-64-NEXT: R_X86_64_32 .data-4
72 ELF-complex-x86-64-NEXT: R_X86_64_32S .data-4
73 ELF-complex-x86-64-NEXT: R_X86_64_64 .data-4
74 ELF-complex-x86-64-NEXT: R_X86_64_PC32 .data-4
75 ELF-complex-x86-64-NEXT: R_X86_64_32 .data
76 ELF-complex-x86-64-NEXT: R_X86_64_32 .data+4