summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/incompatible-section-types2.s
blob: 3e281ce6c5da383b4f53b2d07a30fb14f19f0521 (plain)
1
2
3
4
5
6
7
8
9
10
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s

// CHECK:      error: section type mismatch for .shstrtab
// CHECK-NEXT: >>> <internal>:(.shstrtab): SHT_STRTAB
// CHECK-NEXT: >>> output section .shstrtab: Unknown

.section .shstrtab,"",@12345
.short 20
OpenPOWER on IntegriCloud