2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: ld.lld %t -o %tout
4 # RUN: llvm-objdump --section-headers %tout | FileCheck %s
14 .section .rodata.a,"a"
22 .section .bss.a,"aw",@nobits
24 .section .bss,"aw",@nobits
30 .section .data.rel.ro,"aw",%progbits
32 .section .data.rel.ro.a,"aw",%progbits
34 .section .data.rel.ro.local,"aw",%progbits
36 .section .data.rel.ro.local.a,"aw",%progbits
38 .section .tbss.foo,"aGwT",@nobits,foo,comdat
40 .section .gcc_except_table.foo,"aG",@progbits,foo,comdat
42 .section .tdata.foo,"aGwT",@progbits,foo,comdat
46 .section .sdata.foo,"aw"
48 .section .sbss,"aw",@nobits
50 .section .sbss.foo,"aw",@nobits
54 .section .srodata.foo,"a"
57 // CHECK
: .rodata 00000002
58 // CHECK-NEXT
: .gcc_except_table 00000001
59 // CHECK-NEXT
: .srodata 00000002
60 // CHECK-NEXT
: .text 00000002
61 // CHECK-NEXT
: .tdata 00000001
62 // CHECK-NEXT
: .tbss 00000001
63 // CHECK-NEXT
: .data.rel.ro 00000004
64 // CHECK-NEXT
: .relro_padding 00000df1
65 // CHECK-NEXT
: .data 00000002
66 // CHECK-NEXT
: .foo.a 00000001
67 // CHECK-NEXT
: .foo 00000001
68 // CHECK-NEXT
: .sdata 00000002
69 // CHECK-NEXT
: .bss 00000002
70 // CHECK-NEXT
: .sbss 00000002
71 // CHECK-NEXT
: .comment 00000008
72 // CHECK-NEXT
: .symtab 00000030
73 // CHECK-NEXT
: .shstrtab 0000009a
74 // CHECK-NEXT
: .strtab 00000008