mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
d787a41b11
Normally r_info is just a 32 of 64 bit number matching the endian of the rest of the file. Unfortunately, mips 64 bit little endian is special: The top 32 bits are a little endian number and the following 32 are a big endian one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178694 91177308-0d34-0410-b5e6-96231b3b80d8
59 lines
2.1 KiB
Plaintext
59 lines
2.1 KiB
Plaintext
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-i386 \
|
|
RUN: | FileCheck %s -check-prefix COFF-i386
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \
|
|
RUN: | FileCheck %s -check-prefix COFF-x86-64
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-i386 \
|
|
RUN: | FileCheck %s -check-prefix ELF-i386
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-x86-64 \
|
|
RUN: | FileCheck %s -check-prefix ELF-x86-64
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \
|
|
RUN: | FileCheck %s -check-prefix ELF-hexagon
|
|
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \
|
|
RUN: | FileCheck %s -check-prefix ELF-MIPS64EL
|
|
|
|
RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \
|
|
RUN: | FileCheck %s -check-prefix ELF-complex-x86-64
|
|
|
|
COFF-i386: .text
|
|
COFF-i386: IMAGE_REL_I386_DIR32 L_.str
|
|
COFF-i386: IMAGE_REL_I386_REL32 _puts
|
|
COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction
|
|
|
|
COFF-x86-64: .text
|
|
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
|
|
|
|
ELF-i386: .text
|
|
ELF-i386: R_386_32
|
|
ELF-i386: R_386_PC32
|
|
ELF-i386: R_386_PC32
|
|
|
|
ELF-x86-64: .text
|
|
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
|
|
|
|
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
|
|
|
|
// 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
|
|
ELF-MIPS64EL: R_MIPS_64
|
|
|
|
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
|