brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · d402e4a Raw
136 lines · plain
1# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-i386 \2# RUN:              | FileCheck %s -check-prefix COFF-i3863# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.coff-x86-64 \4# RUN:              | FileCheck %s -check-prefix COFF-x86-645 6# RUN: yaml2obj --docnum=1 %s -o %t-i3867# RUN: llvm-objdump -r %t-i386 | FileCheck %s --check-prefix=ELF-i3868 9# ELF-i386: .text10# ELF-i386: R_386_32 .section11# ELF-i386: R_386_PC32 symbol12 13--- !ELF14FileHeader:15  Class:   ELFCLASS3216  Data:    ELFDATA2LSB17  Type:    ET_REL18  Machine: EM_38619Sections:20  - Name: .text21    Type: SHT_PROGBITS22  - Name: .section23    Type: SHT_PROGBITS24  - Name: .rel.text25    Type: SHT_REL26    Link: .symtab27    Info: .text28    Relocations:29      - Symbol: .section30        Type:   R_386_3231      - Offset: 0x132        Symbol: symbol33        Type:   R_386_PC3234Symbols:35  - Name:    .section36    Type:    STT_SECTION37    Section: .section38  - Name:    symbol39    Binding: STB_GLOBAL40 41# RUN: yaml2obj --docnum=2 %s -o %t-x86-6442# RUN: llvm-objdump -r %t-x86-64 | FileCheck %s --check-prefix=ELF-x86-6443 44# ELF-x86-64: .text45# ELF-x86-64: R_X86_64_32S .section46# ELF-x86-64: R_X86_64_PC32 symbol47 48--- !ELF49FileHeader:50  Class:   ELFCLASS3251  Data:    ELFDATA2LSB52  Type:    ET_REL53  Machine: EM_X86_6454Sections:55  - Name: .text56    Type: SHT_PROGBITS57  - Name: .section58    Type: SHT_PROGBITS59  - Name: .rel.text60    Type: SHT_REL61    Link: .symtab62    Info: .text63    Relocations:64      - Symbol: .section65        Type:   R_X86_64_32S66      - Offset: 0x167        Symbol: symbol68        Type:   R_X86_64_PC3269Symbols:70  - Name:    .section71    Type:    STT_SECTION72    Section: .section73  - Name:    symbol74    Binding: STB_GLOBAL75 76# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \77# RUN:              | FileCheck %s -check-prefix ELF-hexagon78# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \79# RUN:              | FileCheck %s -check-prefix ELF-MIPS64EL80# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \81# RUN:              | FileCheck %s -check-prefix ELF-MIPSEL82# RUN: llvm-objdump -r %p/Inputs/trivial-object-test.wasm \83# RUN:              | FileCheck %s -check-prefix WASM84 85# RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \86# RUN:              | FileCheck %s -check-prefix ELF-complex-x86-6487 88# COFF-i386: .text89# COFF-i386: IMAGE_REL_I386_DIR32 L_.str90# COFF-i386: IMAGE_REL_I386_REL32 _puts91# COFF-i386: IMAGE_REL_I386_REL32 _SomeOtherFunction92 93# COFF-x86-64: .text94# COFF-x86-64: IMAGE_REL_AMD64_REL32 L.str95# COFF-x86-64: IMAGE_REL_AMD64_REL32 puts96# COFF-x86-64: IMAGE_REL_AMD64_REL32 SomeOtherFunction97 98# ELF-hexagon: .text99# ELF-hexagon: R_HEX_GOTREL_HI16 .main100# ELF-hexagon: R_HEX_GOTREL_LO16 .main101# ELF-hexagon: R_HEX_HI16 puts102# ELF-hexagon: R_HEX_LO16 puts103# ELF-hexagon: R_HEX_B15_PCREL testf104# ELF-hexagon: R_HEX_B22_PCREL puts105 106## Note: this file was produced with gas to make sure we don't end up in a107## situation where LLVM produces and accepts a broken file.108# ELF-MIPS64EL: .data109# ELF-MIPS64EL: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE zed110 111# ELF-MIPSEL: .text112# ELF-MIPSEL: R_MIPS_HI16 _gp_disp113# ELF-MIPSEL: R_MIPS_LO16 _gp_disp114# ELF-MIPSEL: R_MIPS_GOT16 $.str115# ELF-MIPSEL: R_MIPS_LO16 $.str116# ELF-MIPSEL: R_MIPS_CALL16 puts117# ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction118 119# WASM:      CODE120# WASM-NEXT: OFFSET TYPE VALUE121# WASM-NEXT: R_WASM_MEMORY_ADDR_SLEB .L.str122# WASM-NEXT: R_WASM_FUNCTION_INDEX_LEB puts123# WASM-NEXT: R_WASM_FUNCTION_INDEX_LEB .LSomeOtherFunction_bitcast124# WASM-NEXT: R_WASM_FUNCTION_INDEX_LEB SomeOtherFunction125 126# ELF-complex-x86-64: .text127# ELF-complex-x86-64-NEXT: OFFSET TYPE VALUE128# ELF-complex-x86-64-NEXT: R_X86_64_8 .data-0x4129# ELF-complex-x86-64-NEXT: R_X86_64_16 .data-0x4130# ELF-complex-x86-64-NEXT: R_X86_64_32 .data-0x4131# ELF-complex-x86-64-NEXT: R_X86_64_32S .data-0x4132# ELF-complex-x86-64-NEXT: R_X86_64_64 .data-0x4133# ELF-complex-x86-64-NEXT: R_X86_64_PC32 .data-0x4134# ELF-complex-x86-64-NEXT: R_X86_64_32 .data135# ELF-complex-x86-64-NEXT: R_X86_64_32 .data+0x4136