xref: /llvm-project/lld/test/ELF/incompatible-section-types2.s (revision e115c00565be88677e8b7fe021a3e242249c67b8)
1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
4
5// CHECK:      error: section type mismatch for .shstrtab
6// CHECK-NEXT: >>> <internal>:(.shstrtab): SHT_STRTAB
7// CHECK-NEXT: >>> output section .shstrtab: Unknown
8
9.section .shstrtab,"",@0x60000000
10.short 20
11