1# REQUIRES: mips 2# Check order of gp-relative sections, i.e. sections with SHF_MIPS_GPREL flag. 3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o 5# RUN: ld.lld %t.o -shared -o %t.so 6# RUN: llvm-readobj -S %t.so | FileCheck %s 7 8 .text 9 nop 10 11 .sdata 12 .word 0 13 14# CHECK: Section { 15# CHECK: Name: .got 16# CHECK-NEXT: Type: SHT_PROGBITS 17# CHECK-NEXT: Flags [ 18# CHECK-NEXT: SHF_ALLOC 19# CHECK-NEXT: SHF_MIPS_GPREL 20# CHECK-NEXT: SHF_WRITE 21# CHECK-NEXT: ] 22# CHECK-NEXT: Address: 23# CHECK-NEXT: Offset: 24# CHECK: } 25# CHECK: Section { 26# CHECK-NEXT: Index: 27# CHECK-NEXT: Name: .sdata 28# CHECK-NEXT: Type: SHT_PROGBITS 29# CHECK-NEXT: Flags [ 30# CHECK-NEXT: SHF_ALLOC 31# CHECK-NEXT: SHF_MIPS_GPREL 32# CHECK-NEXT: SHF_WRITE 33# CHECK-NEXT: ] 34# CHECK-NEXT: Address: 35# CHECK-NEXT: Offset: 36# CHECK: } 37