1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 3// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s 4 5// CHECK: error: incompatible section flags for .foo 6// CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.foo): 0x3 7// CHECK-NEXT: >>> output section .foo: 0x403 8 9// CHECK: error: incompatible section flags for .bar 10// CHECK-NEXT: >>> {{.*}}incompatible-section-flags.s.tmp.o:(.bar): 0x403 11// CHECK-NEXT: >>> output section .bar: 0x3 12 13.section .foo, "awT", @progbits, unique, 1 14.quad 0 15 16.section .foo, "aw", @progbits, unique, 2 17.quad 0 18 19 20.section .bar, "aw", @progbits, unique, 3 21.quad 0 22 23.section .bar, "awT", @progbits, unique, 4 24.quad 0 25