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
45 // CHECK
: .rodata 00000002
46 // CHECK-NEXT
: .gcc_except_table 00000001
47 // CHECK-NEXT
: .text 00000002
48 // CHECK-NEXT
: .tdata 00000001
49 // CHECK-NEXT
: .tbss 00000001
50 // CHECK-NEXT
: .data.rel.ro 00000004
51 // CHECK-NEXT
: .relro_padding 00000df5
52 // CHECK-NEXT
: .data 00000002
53 // CHECK-NEXT
: .foo.a 00000001
54 // CHECK-NEXT
: .foo 00000001
55 // CHECK-NEXT
: .bss 00000002
56 // CHECK-NEXT
: .comment 00000008
57 // CHECK-NEXT
: .symtab 00000030
58 // CHECK-NEXT
: .shstrtab 00000084
59 // CHECK-NEXT
: .strtab 00000008