1# REQUIRES: mips
2# Shouldn't allow the GNU hash style to be selected with the MIPS target.
3
4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t-be.o
5# RUN: not ld.lld -shared -hash-style=gnu %t-be.o -o /dev/null 2>&1 | FileCheck %s
6
7# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %t-el.o
8# RUN: not ld.lld -shared -hash-style=gnu %t-el.o -o /dev/null 2>&1 | FileCheck %s
9
10# CHECK: the .gnu.hash section is not compatible with the MIPS target
11
12  .globl  __start
13__start:
14  nop
15