brintos

brintos / llvm-project-archived public Read only

0
0
Text · 908 B · ad0cb03 Raw
37 lines · plain
1# mips64el has a special encoding of the r_info relocation field.2# Test that we support both endianness.3 4# RUN: yaml2obj %s -DENDIANNESS=ELFDATA2LSB -o %t1-le5# RUN: llvm-objcopy %t1-le %t2-le6# RUN: llvm-readobj --relocations %t2-le | FileCheck %s7 8# RUN: yaml2obj %s -DENDIANNESS=ELFDATA2MSB -o %t1-be9# RUN: llvm-objcopy %t1-be %t2-be10# RUN: llvm-readobj --relocations %t2-be | FileCheck %s11 12!ELF13FileHeader:14  Class:   ELFCLASS6415  Data:    [[ENDIANNESS]]16  Type:    ET_REL17  Machine: EM_MIPS18Sections:19  - Name: .text20    Type: SHT_PROGBITS21  - Name: .rela.text22    Type: SHT_RELA23    Relocations:24      - Offset: 825        Symbol: foo26        Type:   R_MIPS_JALR27Symbols:28  - Name:    foo29    Type:    STT_FUNC30    Section: .text31 32# CHECK:      Relocations [33# CHECK-NEXT:   Section (2) .rela.text {34# CHECK-NEXT:     0x8 R_MIPS_JALR/R_MIPS_NONE/R_MIPS_NONE foo 0x035# CHECK-NEXT:   }36# CHECK-NEXT: ]37