1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o 3# RUN: ld.lld -r %t1.o -o %t 4# RUN: llvm-readobj -S --section-data %t | FileCheck %s 5 6# CHECK: Name: .comment 7# CHECK-NEXT: Type: SHT_PROGBITS 8# CHECK-NEXT: Flags [ 9# CHECK-NEXT: SHF_MERGE 10# CHECK-NEXT: SHF_STRINGS 11# CHECK-NEXT: ] 12# CHECK-NEXT: Address: 13# CHECK-NEXT: Offset: 14# CHECK-NEXT: Size: 7 15# CHECK-NEXT: Link: 16# CHECK-NEXT: Info: 17# CHECK-NEXT: AddressAlignment: 1 18# CHECK-NEXT: EntrySize: 1 19# CHECK-NEXT: SectionData ( 20# CHECK-NEXT: 0000: 666F6F62 617200 |foobar.| 21# CHECK-NEXT: ) 22 23 24# We used to crash creating a merge and non merge .comment sections. 25 26 .section .comment,"MS",@progbits,1 27 .asciz "foobar" 28