• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: mips
2# Check EI_ABIVERSION flags
3
4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5# RUN: ld.lld -shared -o %t.so %t.o
6# RUN: llvm-readobj -h %t.so | FileCheck -check-prefix=DSO %s
7# RUN: ld.lld -o %t.exe %t.o
8# RUN: llvm-readobj -h %t.exe | FileCheck -check-prefix=EXE %s
9# RUN: ld.lld -pie -o %t.pie %t.o
10# RUN: llvm-readobj -h %t.pie | FileCheck -check-prefix=PIE %s
11# RUN: ld.lld -r -o %t.rel %t.o
12# RUN: llvm-readobj -h %t.rel | FileCheck -check-prefix=REL %s
13
14# DSO: ABIVersion: 0
15# EXE: ABIVersion: 1
16# PIE: ABIVersion: 0
17# REL: ABIVersion: 0
18
19  .global __start
20  .text
21__start:
22  nop
23