1// REQUIRES: x86 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 5 6.global _start 7_start: 8 9.section foobar,"",@progbits 10 11.section bar, "a" 12 13// Both sections are in the output and that the alloc section is first: 14// CHECK: Name: bar 15// CHECK-NEXT: Type: SHT_PROGBITS 16// CHECK-NEXT: Flags [ 17// CHECK-NEXT: SHF_ALLOC 18// CHECK-NEXT: ] 19// CHECK-NEXT: Address: 0x200120 20 21// CHECK: Name: foobar 22// CHECK-NEXT: Type: SHT_PROGBITS 23// CHECK-NEXT: Flags [ 24// CHECK-NEXT: ] 25// CHECK-NEXT: Address: 0x0 26 27// CHECK-NOT: Name: foobar 28