3 ## Some section types (e.g. SHT_NOBITS, SHT_NOTE, SHT_PREINIT_ARRAY) can be
4 ## mixed with SHT_PROGBITS. The output type is SHT_PROGBITS.
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
7 # RUN: ld.lld -shared %t.o -o %t
8 # RUN: llvm-readelf -S %t | FileCheck %s
10 # CHECK: .foo2 PROGBITS {{.*}} 000002 00 A
11 # CHECK: .foo PROGBITS {{.*}} 000028 00 WA
12 # CHECK: .foo1 PROGBITS {{.*}} 000010 00 WA
14 .section .foo, "aw", @progbits, unique, 1
17 .section .foo, "aw", @init_array, unique, 2
20 .section .foo, "aw", @preinit_array, unique, 3
23 .section .foo, "aw", @fini_array, unique, 4
26 .section .foo, "aw", @note, unique, 5
29 .section .foo1, "aw", @progbits, unique, 1
31 .section .foo1, "aw", @nobits, unique, 2
34 .section .foo2, "a", @nobits, unique, 1
36 .section .foo2, "a", @progbits, unique, 2