2011-11-01 00:56:52 +01:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-i386 \
|
2011-10-08 02:18:30 +02:00
|
|
|
RUN: | FileCheck %s -check-prefix COFF-i386
|
2011-11-01 00:56:52 +01:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \
|
2011-10-08 02:18:30 +02:00
|
|
|
RUN: | FileCheck %s -check-prefix COFF-x86-64
|
2011-11-01 00:56:52 +01:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \
|
2011-10-08 02:18:30 +02:00
|
|
|
RUN: | FileCheck %s -check-prefix ELF-i386
|
2011-11-01 00:56:52 +01:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \
|
2011-10-08 02:18:30 +02:00
|
|
|
RUN: | FileCheck %s -check-prefix ELF-x86-64
|
2012-06-23 16:46:18 +02:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF-hexagon
|
2013-04-03 23:02:51 +02:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF-MIPS64EL
|
2014-01-23 16:05:45 +01:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF-MIPSEL
|
2011-10-08 02:18:30 +02:00
|
|
|
|
2012-09-06 01:48:54 +02:00
|
|
|
RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \
|
|
|
|
RUN: | FileCheck %s -check-prefix ELF-complex-x86-64
|
|
|
|
|
2011-10-14 00:30:10 +02:00
|
|
|
COFF-i386: .text
|
2011-10-08 02:18:30 +02:00
|
|
|
COFF-i386: IMAGE_REL_I386_DIR32 L_.str
|
|
|
|
COFF-i386: IMAGE_REL_I386_REL32 _puts
|
|
|
|
COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction
|
|
|
|
|
2011-10-14 00:30:10 +02:00
|
|
|
COFF-x86-64: .text
|
2011-10-08 02:18:30 +02:00
|
|
|
COFF-x86-64: IMAGE_REL_AMD64_REL32 L.str
|
|
|
|
COFF-x86-64: IMAGE_REL_AMD64_REL32 puts
|
|
|
|
COFF-x86-64: IMAGE_REL_AMD64_REL32 SomeOtherFunction
|
|
|
|
|
2011-10-14 00:30:10 +02:00
|
|
|
ELF-i386: .text
|
2014-10-29 19:37:13 +01:00
|
|
|
ELF-i386: R_386_32 .rodata.str1.1
|
|
|
|
ELF-i386: R_386_PC32 puts
|
|
|
|
ELF-i386: R_386_PC32 SomeOtherFunction
|
2011-10-08 02:18:30 +02:00
|
|
|
|
2011-10-14 00:30:10 +02:00
|
|
|
ELF-x86-64: .text
|
2011-10-08 02:18:30 +02:00
|
|
|
ELF-x86-64: R_X86_64_32S .rodata.str1.1
|
|
|
|
ELF-x86-64: R_X86_64_PC32 puts
|
|
|
|
ELF-x86-64: R_X86_64_PC32 SomeOtherFunction
|
2012-06-23 16:46:18 +02:00
|
|
|
|
|
|
|
ELF-hexagon: .text
|
|
|
|
ELF-hexagon: R_HEX_GOTREL_HI16 .main
|
|
|
|
ELF-hexagon: R_HEX_GOTREL_LO16 .main
|
|
|
|
ELF-hexagon: R_HEX_HI16 puts
|
|
|
|
ELF-hexagon: R_HEX_LO16 puts
|
|
|
|
ELF-hexagon: R_HEX_B15_PCREL testf
|
|
|
|
ELF-hexagon: R_HEX_B22_PCREL puts
|
2012-09-06 01:48:54 +02:00
|
|
|
|
2013-04-03 23:02:51 +02:00
|
|
|
// Note: this file was produced with gas to make sure we don't end up in a
|
|
|
|
// situation where LLVM produces and accepts a broken file.
|
|
|
|
ELF-MIPS64EL: .data
|
2014-01-23 16:05:45 +01:00
|
|
|
ELF-MIPS64EL: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE zed
|
|
|
|
|
|
|
|
ELF-MIPSEL: .rel.text
|
|
|
|
ELF-MIPSEL: R_MIPS_HI16 _gp_disp
|
|
|
|
ELF-MIPSEL: R_MIPS_LO16 _gp_disp
|
|
|
|
ELF-MIPSEL: R_MIPS_GOT16 $.str
|
|
|
|
ELF-MIPSEL: R_MIPS_LO16 $.str
|
|
|
|
ELF-MIPSEL: R_MIPS_CALL16 puts
|
|
|
|
ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
|
2013-04-03 23:02:51 +02:00
|
|
|
|
2012-09-06 01:48:54 +02:00
|
|
|
ELF-complex-x86-64: .text
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_16 .data-4
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_32 .data-4
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_32S .data-4
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_64 .data-4
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_PC32 .data-4-P
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_32 .data+0
|
|
|
|
ELF-complex-x86-64-NEXT: R_X86_64_32 .data+4
|