diff options
Diffstat (limited to 'test/ELF/mips-gnu-hash.s')
| -rw-r--r-- | test/ELF/mips-gnu-hash.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ELF/mips-gnu-hash.s b/test/ELF/mips-gnu-hash.s new file mode 100644 index 000000000000..4b11f213518c --- /dev/null +++ b/test/ELF/mips-gnu-hash.s @@ -0,0 +1,15 @@ +# 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 +# RUN: not ld.lld -shared -hash-style=gnu %t-be.o -o %t-be.so 2>&1 | FileCheck %s + +# RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %t-el.o +# RUN: not ld.lld -shared -hash-style=gnu %t-el.o -o %t-el.so 2>&1 | FileCheck %s + +# CHECK: The .gnu.hash section is not compatible with the MIPS target. + +# REQUIRES: mips + + .globl __start +__start: + nop |
