2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 // RUN: ld.lld %t -o %t2
4 // RUN: llvm-readobj -sections %t2 | FileCheck %s
9 .section foobar,"",@progbits
13 // Both sections are in the output and that the alloc section is first:
15 // CHECK-NEXT: Type: SHT_PROGBITS
16 // CHECK-NEXT: Flags [
17 // CHECK-NEXT: SHF_ALLOC
19 // CHECK-NEXT: Address: 0x200120
21 // CHECK: Name: foobar
22 // CHECK-NEXT: Type: SHT_PROGBITS
23 // CHECK-NEXT: Flags [
25 // CHECK-NEXT: Address: 0x0
27 // CHECK-NOT: Name: foobar