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-le 5# RUN: llvm-objcopy %t1-le %t2-le 6# RUN: llvm-readobj --relocations %t2-le | FileCheck %s 7 8# RUN: yaml2obj %s -DENDIANNESS=ELFDATA2MSB -o %t1-be 9# RUN: llvm-objcopy %t1-be %t2-be 10# RUN: llvm-readobj --relocations %t2-be | FileCheck %s 11 12!ELF 13FileHeader: 14 Class: ELFCLASS64 15 Data: [[ENDIANNESS]] 16 Type: ET_REL 17 Machine: EM_MIPS 18Sections: 19 - Name: .text 20 Type: SHT_PROGBITS 21 - Name: .rela.text 22 Type: SHT_RELA 23 Relocations: 24 - Offset: 8 25 Symbol: foo 26 Type: R_MIPS_JALR 27Symbols: 28 - Name: foo 29 Type: STT_FUNC 30 Section: .text 31 32# CHECK: Relocations [ 33# CHECK-NEXT: Section (2) .rela.text { 34# CHECK-NEXT: 0x8 R_MIPS_JALR/R_MIPS_NONE/R_MIPS_NONE foo 0x0 35# CHECK-NEXT: } 36# CHECK-NEXT: ] 37