23 lines · plain
1# REQUIRES: mips2# Check EI_ABIVERSION flags3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o5# RUN: ld.lld -shared -o %t.so %t.o6# RUN: llvm-readobj -h %t.so | FileCheck -check-prefix=DSO %s7# RUN: ld.lld -o %t.exe %t.o8# RUN: llvm-readobj -h %t.exe | FileCheck -check-prefix=EXE %s9# RUN: ld.lld -pie -o %t.pie %t.o10# RUN: llvm-readobj -h %t.pie | FileCheck -check-prefix=PIE %s11# RUN: ld.lld -r -o %t.rel %t.o12# RUN: llvm-readobj -h %t.rel | FileCheck -check-prefix=REL %s13 14# DSO: ABIVersion: 015# EXE: ABIVersion: 116# PIE: ABIVersion: 017# REL: ABIVersion: 018 19 .global __start20 .text21__start:22 nop23