blob: 1e41f78ca729e875ab58cedb46779b68c3d49bb9 [file] [log] [blame]
Matt Beaumont-Gay1c1a2b82011-10-31 23:56:52 +00001RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-i386 \
Michael J. Spencerba4a3622011-10-08 00:18:30 +00002RUN: | FileCheck %s -check-prefix COFF-i386
Matt Beaumont-Gay1c1a2b82011-10-31 23:56:52 +00003RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \
Michael J. Spencerba4a3622011-10-08 00:18:30 +00004RUN: | FileCheck %s -check-prefix COFF-x86-64
Matt Beaumont-Gay1c1a2b82011-10-31 23:56:52 +00005RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \
Michael J. Spencerba4a3622011-10-08 00:18:30 +00006RUN: | FileCheck %s -check-prefix ELF-i386
Matt Beaumont-Gay1c1a2b82011-10-31 23:56:52 +00007RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \
Michael J. Spencerba4a3622011-10-08 00:18:30 +00008RUN: | FileCheck %s -check-prefix ELF-x86-64
Marshall Clow78ade1d2012-06-23 14:46:18 +00009RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \
10RUN: | FileCheck %s -check-prefix ELF-hexagon
Rafael Espindola2025e8b2013-04-03 21:02:51 +000011RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \
12RUN: | FileCheck %s -check-prefix ELF-MIPS64EL
Simon Atanasyan793f1b22014-01-23 15:05:45 +000013RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \
14RUN: | FileCheck %s -check-prefix ELF-MIPSEL
Michael J. Spencerba4a3622011-10-08 00:18:30 +000015
Nick Lewyckycfc2fe92012-09-05 23:48:54 +000016RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \
17RUN: | FileCheck %s -check-prefix ELF-complex-x86-64
18
Michael J. Spencer834bd6022011-10-13 22:30:10 +000019COFF-i386: .text
Michael J. Spencerba4a3622011-10-08 00:18:30 +000020COFF-i386: IMAGE_REL_I386_DIR32 L_.str
21COFF-i386: IMAGE_REL_I386_REL32 _puts
22COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction
23
Michael J. Spencer834bd6022011-10-13 22:30:10 +000024COFF-x86-64: .text
Michael J. Spencerba4a3622011-10-08 00:18:30 +000025COFF-x86-64: IMAGE_REL_AMD64_REL32 L.str
26COFF-x86-64: IMAGE_REL_AMD64_REL32 puts
27COFF-x86-64: IMAGE_REL_AMD64_REL32 SomeOtherFunction
28
Michael J. Spencer834bd6022011-10-13 22:30:10 +000029ELF-i386: .text
Jan Wen Voungce2164f2014-10-29 18:37:13 +000030ELF-i386: R_386_32 .rodata.str1.1
31ELF-i386: R_386_PC32 puts
32ELF-i386: R_386_PC32 SomeOtherFunction
Michael J. Spencerba4a3622011-10-08 00:18:30 +000033
Michael J. Spencer834bd6022011-10-13 22:30:10 +000034ELF-x86-64: .text
Michael J. Spencerba4a3622011-10-08 00:18:30 +000035ELF-x86-64: R_X86_64_32S .rodata.str1.1
36ELF-x86-64: R_X86_64_PC32 puts
37ELF-x86-64: R_X86_64_PC32 SomeOtherFunction
Marshall Clow78ade1d2012-06-23 14:46:18 +000038
39ELF-hexagon: .text
40ELF-hexagon: R_HEX_GOTREL_HI16 .main
41ELF-hexagon: R_HEX_GOTREL_LO16 .main
42ELF-hexagon: R_HEX_HI16 puts
43ELF-hexagon: R_HEX_LO16 puts
44ELF-hexagon: R_HEX_B15_PCREL testf
45ELF-hexagon: R_HEX_B22_PCREL puts
Nick Lewyckycfc2fe92012-09-05 23:48:54 +000046
Rafael Espindola2025e8b2013-04-03 21:02:51 +000047// Note: this file was produced with gas to make sure we don't end up in a
48// situation where LLVM produces and accepts a broken file.
49ELF-MIPS64EL: .data
Simon Atanasyan793f1b22014-01-23 15:05:45 +000050ELF-MIPS64EL: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE zed
51
52ELF-MIPSEL: .rel.text
53ELF-MIPSEL: R_MIPS_HI16 _gp_disp
54ELF-MIPSEL: R_MIPS_LO16 _gp_disp
55ELF-MIPSEL: R_MIPS_GOT16 $.str
56ELF-MIPSEL: R_MIPS_LO16 $.str
57ELF-MIPSEL: R_MIPS_CALL16 puts
58ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
Rafael Espindola2025e8b2013-04-03 21:02:51 +000059
Nick Lewyckycfc2fe92012-09-05 23:48:54 +000060ELF-complex-x86-64: .text
61ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4
62ELF-complex-x86-64-NEXT: R_X86_64_16 .data-4
63ELF-complex-x86-64-NEXT: R_X86_64_32 .data-4
64ELF-complex-x86-64-NEXT: R_X86_64_32S .data-4
65ELF-complex-x86-64-NEXT: R_X86_64_64 .data-4
66ELF-complex-x86-64-NEXT: R_X86_64_PC32 .data-4-P
67ELF-complex-x86-64-NEXT: R_X86_64_32 .data+0
68ELF-complex-x86-64-NEXT: R_X86_64_32 .data+4