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
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
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
13 .section .foo, "awT", @progbits, unique, 1
16 .section .foo, "aw", @progbits, unique, 2
20 .section .bar, "aw", @progbits, unique, 3
23 .section .bar, "awT", @progbits, unique, 4