2018-06-27 00:58:19 +08:00
|
|
|
# REQUIRES: mips
|
2015-11-12 12:08:12 +08:00
|
|
|
# Shouldn't allow the GNU hash style to be selected with the MIPS target.
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t-be.o
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: not ld.lld -shared -hash-style=gnu %t-be.o -o /dev/null 2>&1 | FileCheck %s
|
2015-11-12 12:08:12 +08:00
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %t-el.o
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: not ld.lld -shared -hash-style=gnu %t-el.o -o /dev/null 2>&1 | FileCheck %s
|
2015-11-12 12:08:12 +08:00
|
|
|
|
2016-03-12 16:31:34 +08:00
|
|
|
# CHECK: the .gnu.hash section is not compatible with the MIPS target.
|
2015-11-12 12:08:12 +08:00
|
|
|
|
|
|
|
.globl __start
|
|
|
|
__start:
|
|
|
|
nop
|